• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

JMS: lookup

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic