on 09-29-2007 1:36 PM
How to get reference of a SessionBean in a ApplicationServer from another SessionBean running in Another ApplicationServer
Hi
There is a method, getHandle() on the EJBObject interface that your remote interfaces extend. This handle can be used to pass a reference to an EJB to someone else (possibly running in another JVM). You can then call getEJBObject() on the Handle instance and get your remote interface on which you can call methods. Should be able to cast it to your specific bean.
I haven't done this, so definitly test it out, but I think this is what you want to do.
check it:
http://mail-archive.objectweb.org/jonas/2000-12/msg00064.html
I suggest u not to go for more complex code, make it simpler, or if its really required use it as a webservice
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I would suggest to expose it as a service and use it on another server (Incase it is a stateless session bean).
Ashu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.