Never mind found a good solution. For my outside app server app I just need to specify a
jndi.properties somewhere in the classpath and then I can just create a default initial
context.
jndi.properties file:
| ### JBossNS properties
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.provider.url=jnp://localhost:1099
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
|
| InitialContext = new InitialContext(); // Will use jndi.properties file
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237452#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...