Just a quick question ...
Is it OK for one session bean to return another as the return parameter of one of its business methods?
i.e.
class SessionBeanOne {
public SessionBeanBeanTwo getBeanTwo()
}
Both are used via their local interfaces.
I have tested the above and found that it works. However I am well aware that just because it works, does not mean that you should be doing this?
Thanks,
Colin E.
You should return a proxy to a bean via SessionContext.getBusinessObject. Now transaction, security and interceptors are ignored.