> I'm trying to set Orion up to run my jsp pages on one box and my beans on
> another box. Where does the jndi.properties file go so that my default
> InitialContext correctly points to the other box? I'm deploying to a
> directory instead of a .war file. I've tried putting under my web-root
> directory, but that did not seem to work. Is there some special place to
> put it change the default InitialContext?
In theory, you put the file in WEB-INF/classes. However, this does not work
for my servlets, so I do not know if it will work for JSP's, which are also
servlets.
It is not clear to me if this is a bug in Orion. However it makes sense to me that
the JNDI package is trying to locate the file with a ClassLoader that is "above"
the servlet's ClassLoader (which correctly has WEB-INF/classes as a path), and
thus is not seeing the file. Yet, I have tried to place the file on a classpath
of parent ClassLoaders, but this did not seem to help.
> Another question: The url in the jndi.properties files under the orion/demo
> directory all have "ormi://localhost/ejbsamples" Is ejbsamples the
> application name as defined in the server.xml file?
Yes.
tim.