This content has been marked as final.
Show 1 reply
-
1. Re: Separate Tomcat from JBoss
ucftcys Apr 28, 2003 2:19 PM (in response to ucftcys)I found the solution...
1. copy the jndi.properties file to WEB-INF/classes/jndi.properties..(in Tomcat)
and modify the file as follow:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
# Do NOT uncomment this line as it causes in VM calls to # go over
# RMI!
java.naming.provider.url=localhost:1099
2.add the following lines to your servlet or JSP:
System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.factory.url.pkgs", "org.jnp.interfaces");
System.setProperty("java.naming.provider.url", "localhost:1099");