I have an EJB deployed on JBoss 3.07 server which I need to access from a servlet running on a Tomcat engine on another machine. But when i try to do it, I get a lookup failure on the jndi name. I have set the InitialContext as it should be. Any idea what it could be due to. Is there any other setting required in tomcat to access EJBs.
(The same EJB when accessed from the embedded servlet engine in JBoss works fine)
Joined: Sep 29, 2002
The Tomcat in JBoss is running in the same JVM as the EJB container. For remote access, you need to pass the environmental entries into the constructor of InitialContext. You will need something like this.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Joined: Aug 17, 2005
Hi there, thanks for the post. Actually i did it the same way but its not working. I get the following exception.