Following the guidelines for accessing an EJB 3.0 module from a
standalone java application, I attempted to do the same from a Tomcat
servlet. I got the following error:
javax.naming.NameNotFoundException: Name <<CLASSNAME>> is not bound in
this Context
I have the requisite jar files (javaee.jar and appserv-rt.jar) in my
application's lib directory. The statements I'm using are:
try
{
InitialContext ic = new InitialContext();
<< classRemote >> c =
(<<classRemote>>)ic.lookup(<<classRemote>>.class.getName());
}
catch (NamingException e)
{
e.printStackTrace();
}
I'm assuming that the InitialContext requires parameters to cause it to
look outside Tomcat to find Glassfish, but I have not been able to
figure out what those parameters are.
A little help would be greatly appreciated!!!!!!!!!