• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webspher Open JMS

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

1. I am using openJMS for publishing/subscribing
2. I am able to publish using openJMS example of SimplePublisher.java as independent java classes and through servlet in tomcat.

Problem:
The moment I use the same code in websphere 5.1 I am getting null connections when I call "createTopicConnection". I tried calling the jms related code directly and also through generic JMS provider but everytime the same problem.

The code is as below

TopicConnectionFactory factory = (TopicConnectionFactory)context.lookup("JmsTopicConnectionFactoryNew");
// I am able to get factory

TopicConnection connection = factory.createTopicConnection();
// this line throws exception
The exception is as below:

[5/23/05 18:14:12:350 EDT] 54205420 SystemErr R java.lang.NullPointerException

[5/23/05 18:14:12:380 EDT] 54205420 SystemErr R at java.lang.Throwable.<init>(Throwable.java:54)

[5/23/05 18:14:12:380 EDT] 54205420 SystemErr R at java.lang.Throwable.<init>(Throwable.java:68)

[5/23/05 18:14:12:380 EDT] 54205420 SystemErr R at java.lang.NullPointerException.<init>(NullPointerException.java:63)

[5/23/05 18:14:12:380 EDT] 54205420 SystemErr R at org.exolab.jms.client.JmsConnectionFactory.addConnection(JmsConnectionFactory.java:171)

[5/23/05 18:14:12:380 EDT] 54205420 SystemErr R at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(JmsTopicConnectionFactory.java:115)

[5/23/05 18:14:12:390 EDT] 54205420 SystemErr R at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(JmsTopicConnectionFactory.java:103)

[5/23/05 18:14:12:390 EDT] 54205420 SystemErr R at openjms.examples.client.console.SimplePublisher.main(SimplePublisher.java)

In the debuger I found the follwing
TopicConnectionFactory factory = (TopicConnectionFactory)
context.lookup("JmsTopicConnectionFactoryNew");

factory is returned but the factory->_connections = null [as
seen in debugger]

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic