This content has been marked as final.
Show 3 replies
-
1. Re: How to create Session Beans??
evrim Oct 25, 2005 5:50 AM (in response to mschmidke)try lookup(B.class); from jndi inside createB() and let jboss manage your beans.
evrim. -
2. Re: How to create Session Beans??
mschmidke Oct 25, 2005 6:55 AM (in response to mschmidke)"evrim" wrote:
try lookup(B.class); from jndi inside createB() and let jboss manage your beans.
Evrim,
thank you, this works ... but ... do I now have to remotely publish all methods which I only want to call locally?
@Resource SessionContext sc;
public B createB() {
B r=sc.lookup(B.class.getName());
r.initialize(...);
return r;
}
initialize() shall only be called locally, but B is the remote interface.
Hmm?
Marcus. -
3. Re: How to create Session Beans??
evrim Oct 25, 2005 5:42 PM (in response to mschmidke)You cannot return your local lookup result(local proxy) to a remote vm. Its meaningless. Remote vm must lookup itself. Try using home.create(Object parameter); at the remote site. This is what j2ee suggests i think.