[jboss-user] [JNDI and Naming] - Re: finding JMS resources with java:comp/env

Wolf-Dieter Fink do-not-reply at jboss.com
Thu Sep 15 02:40:09 EDT 2011


Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

"Re: finding JMS resources with java:comp/env"

To view the discussion, visit: http://community.jboss.org/message/626604#626604

--------------------------------------------------------------
What kind of client? Remote or inside the server? EJB2 or EJB3?

Simple Remote access:
TopicConnectionFactory qcf = (TopicConnectionFactory) initialContext.lookup("ConnectionFactory");
TopicConnection conn = qcf.createTopicConnection();
Topic csTopic = (Topic) initialContext.lookup("topic/MyTopic");

The env looks like:
env.put("java.naming.factory.initial", "org.jboss.naming.NamingContextFactory");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
env.put("java.naming.provider.url", "jnp://localhost:1099");
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/626604#626604]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110915/b0e498c1/attachment.html 


More information about the jboss-user mailing list