Anyone know the right way to get EJB objects from an EJB container on another machine? I have tried creating the hashtable of props for client jndi, and that seems to help. But every time I try to access an EJB, it tells me XXX not bound. In my web-inf/web.xml, I have:
<ejb-ref>
<ejb-ref-name>ejb/MyEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
myPackage.MyHome
myPackage.MyRemote
</ejb-ref>
Trying to use Resin for web tier and JBoss for mid tier and having no luck getting EJB references.
Any help would be appreciated.
Thank you.
Back to top
All you have to do is to look at the jndi context of the server which has ur EJBs.
You can create a hashtable with your EJB server's jndi properties and create a InitialContext out of it.
Then lookup the bean from this context