Hello all, I have an application that works properly, in that it sucessfully looks up an EJB using the JNDI name. However when I attempt to run the same code in a servlet the lookup() fails and says "myBean not defined in this context" I am using Tomcat. Is there any security or other configurations that are needed for my servlet to be able to see my JNDI names?
Welcome to Javaranch. We follow certain conventions with respect to the User name as given in the document here . Your user name does not follow these conventions. Please re-register with a name following these conventions. Thanks.
Tomcat is not an EJB server. For that, you have to pair it with something like the JOnAS EJB system (http://www.objectweb.org). JOnAS provides a JNDI registry service and EJB server.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 26, 2001
The EJB is running in the borland appserver. The issue is from an application I can do the lookup no problem, but when I take the code that does the lookup and make it a servlet and run it in the webserver with the ejb still on the appserver then the lookup fails.
Originally posted by Tim Holloway: Tomcat is not an EJB server. For that, you have to pair it with something like the JOnAS EJB system (http://www.objectweb.org). JOnAS provides a JNDI registry service and EJB server.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com