JNDI lookup in JBoss

This post illustrates a simple JNDI lookup in Jboss Server that can be used to lookup Data Sources etc. 1. Open a command prompt and set the class path to the jbossall-client.jar file. set classpath=%classpath%;G:\jboss-5.1.0.GA\client\jbossall-client.jar 2. Compile and execute the JNDITest.java program. import java.security.Security; import java.util.Properties; import javax.naming.Context; import javax.naming.InitialContext;

Continue reading »