This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JMS: lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JMS: lookup" Watch "JMS: lookup" New topic
Author

JMS: lookup

ammon rha
Greenhorn

Joined: Feb 18, 2004
Posts: 1
I am passing from makes happy to jboss3.2.3. I have a problem with JMS. The code is following:
....
....
String jndiUrl = "jnp://brusamo:1099";
java.util.Properties props = new Properties();
props.setProperty(Context.PROVIDER_URL, jndiUrl);
props.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.setProperty (Context.URL_PKG_PREFIXES,"org.jboss.naming rg.jnp.interfaces");

.....
...
Object tmp = ctx.lookup("ConnectionFactory");
tconFactory = (TopicConnectionFactory) tmp;
tcon = tconFactory.createTopicConnection();
During the lookup with ConnectionFactory I have always NullPointerException. I do not use res-ref or other in jboss-web.xml and/or jboss.xml the client is an applet. You can help me
Tanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS: lookup
 
Similar Threads
javax.naming.NameNotFoundException: in context "java:comp/env"
JMS Client Communication behind NAT
JMS in Jboss
Unable to push messages in JBoss-JMS queue
Servlet JNDI lookup fails for Connection Factory on Jboss