Context.listBindings()

Ola galera!

Preciso buscar todos os recursos JNDI do meu servidor. Tenho o seguinte trecho de código:

try {		
			Properties env = new Properties();
			env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
			env.put(Context.PROVIDER_URL, "127.0.0.1:1099");
			env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
			
			Context ctx = new InitialContext(env);
			
			@SuppressWarnings("rawtypes")
			NamingEnumeration lista = ctx.listBindings("AQUI"); // Qual parametro?
			
			while (lista.hasMore()) {
				Binding bd = (Binding) lista.next();
				System.out.println("Name: " + bd.getName());
				System.out.println("Type: " + bd.getClassName());
				System.out.println("Value: " + bd.getObject());
			}
			
		} catch (NamingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

O que exatamente eu passo de parametro no lugar do ‘AQUI’ no código?

Desde já agradeço.

Att

Galera, problema resolvido!

Quando eu rodava o código acima sem parametro nenhum, ou seja, no lugar do ‘AQUI’ ficava “”, era retornado uma exception:

javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at org.jnp.interfaces.NamingContext.listBindings(NamingContext.java:724)
at org.jnp.interfaces.NamingContext.listBindings(NamingContext.java:699)
at javax.naming.InitialContext.listBindings(InitialContext.java:396)
at JNDIList.main(JNDIList.java:23)

Eu retire o o seguinte arquivo e funcionou:

jboss-home/server/default/deploy/uuid-key-generator.sar

Agora, algué, sabe explicar porque?