Sorry! How can I do that?
| Context ctx = new InitialContext();
|
| Hashtable<String, String> env;
| env = new Hashtable<String, String>();
| env.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
|
env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jn.interfaces");
|
env.put("java.naming.provider.url","jnp://localhost:1099");
| ctx = new InitialContext(env);
|
| NamingEnumeration list = ctx.list("");
|
| while (list.hasMore()) {
| NameClassPair nc = (NameClassPair) list.next();
|
| System.out.println(nc);
And the result of that is:
| TopicConnectionFactory: org.jboss.naming.LinkRefPair
| jmx: org.jnp.interfaces.NamingContext
| HTTPXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
| ConnectionFactory: org.jboss.mq.SpyConnectionFactory
| UserTransactionSessionFactory: $Proxy12
| HTTPConnectionFactory: org.jboss.mq.SpyConnectionFactory
| XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
| UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
| UILXAConnectionFactory: javax.naming.LinkRef
| UIL2XAConnectionFactory: javax.naming.LinkRef
| queue: org.jnp.interfaces.NamingContext
| console: org.jnp.interfaces.NamingContext
| UIL2ConnectionFactory: javax.naming.LinkRef
| HiLoKeyGeneratorFactory:
org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory
| UILConnectionFactory: javax.naming.LinkRef
| EventDispatcher: org.jboss.ws.eventing.mgmt.DispatcherDelegate
| QueueConnectionFactory: org.jboss.naming.LinkRefPair
But ... I don't know exacty do what you are telling me. Could you tell me how I
could do that?
Thanks a lot!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113218#4113218
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113218
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user