::::::I am trying to lookup JBoss ports through this client Program:::::::
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory\
");
env.put(Context.PROVIDER_URL,"jnp://localhost:1199");
env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interface");
Context ctx = new InitialContext(env);
NamingEnumeration bl=(NamingEnumeration)ctx.listBindings("");
while(bl.hasMore()){
Binding b=(Binding)bl.next();
System.out.println(b.getName() + " Object is -> " + b.getObject());
::::::::::::::::On Executing this i am getting Exception::::::::::::::::
javax.naming.CommunicationException: Could not obtain connection to any of
these urls: localhost:1199 and discovery failed with error:
java.security.AccessControlException: access denied (java.net.SocketPermission
230.0.0.4 connect,accept,resolve) [Root exception is
javax.naming.CommunicationExcepti
on: Failed to connect to server localhost:1199 [Root exception is
java.security.AccessControlException: access denied (java.net.SocketPermission
127.0.0.1:1199 connect,resolve)]]
_____________________________________________________________
if anyone knows the answer then do let me no please