[jboss-user] [JNDI/Naming/Network] - Re: using Tomcat to serve EJB requests
cjc
do-not-reply at jboss.com
Fri Nov 3 05:23:16 EST 2006
Hi,
I have the same configuration. I did copy the lib's from Jboss to webapps/"something"/WEB-INF/lib
| jbossall-client.jar
| jboss-aop-jdk50-client.jar
| jboss-aspect-jdk50-client.jar
| jboss-aspect-library-jdk50.jar
| jboss-ejb3-client.jar
| jboss-ejb3x.jar
| ejb3-persistence.jar
| hibernate-client.jar
| jmx-client.jar
|
|
| put a jndi.properties file in classpath (webapps/"something"/WEB-INF/classes)
|
|
| | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| |
| | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| |
| | java.naming.provider.url=jnp://"otherMachine":1099
| |
|
| and importend add the starting parameter to Tomcat -nonaming
|
| EJB 3.0 lookup
| InitialContext itx = new InitialContext();
| | ModulDataManager modulDataManager = (ModulDataManager) itx.lookup("ModulDataManagerBean/remote");
|
| I think this is very dirty but works easy. I woud be happy to have a nicer way! Mainly the "-nonaming" i did't like!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982909#3982909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982909
More information about the jboss-user
mailing list