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 »

Securing the JNDI with Admin Role in 11g

We need to go to the server and access the link for the jndi. The jndi tree will show up in a new window. Check the default roles and policies By default, everyone has access to the JNDI Remove the role And then add the admin role. This will enable

Continue reading »