-
1. Re: Standalone JNDI server using jnpserver.jar
rpepersack Aug 9, 2007 9:17 AM (in response to bakarirum)Hi Marc,
How did you get the JBoss JNDI server working in your own Java application? I've been reading the JBoss source code and trying different things for days, but I can't get it to run. I'm using the code from version 4.2.1.GA.
Thanks. -
2. Re: Standalone JNDI server using jnpserver.jar
ako2k Aug 15, 2007 6:35 AM (in response to bakarirum)Hi Marc,
ich would like to know how you made it work, too. I found some old tutorials that show how to use jnpserver.jar, but it doesn't seem to work. Allways when i try to star the JNP Server like shown in [1] (java org.jnp.server.Main) i get an error. (Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/threadpool/ThreadPool)
Do you know if there are new how-tos to get the jnpserver work within j2se?
[1] http://www.javaworld.com/javaworld/jw-04-2002/jw-0419-jndi.html?page=4
Thanks,
Andreas -
3. Re: Standalone JNDI server using jnpserver.jar
shimi Oct 2, 2007 5:35 PM (in response to bakarirum)You need jbossall-client.jar and jnpserver.jar in the classpath.
The jndi.properties should contain:
java.naming.provider.url=localhost:1099
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming