• 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

MQ (Messaging Queue) connection using Topics

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to connect to Message Queue using JMS. This is topic based connection. Now, the problem is, I have 4 different topics to subscribe to. In this case, I created object of InitialContext, then did lookup for TopicConnectionFactory and received TopicConnectionFactory object, then created Topic connection (TopicConnection) object, and from that I created TopicSession object.

Using this TopicSession object, I created four Topic and TopicSubscriber object which intern will connect to mentioned topic.

But now the problem is that, the MQ configurator is saying that, he can see only two connections made to the first topic that I subscribe to. No other topic is connected. (I am not receiving any error anywhere).

So, does that mean that, once the first topic is created using one TopicConnection class, it will not accept anymore topic connection? Do I need to create all the above mentioned object seperately for all four topics?

I took the reference of IBM provided code which specify how to connect to MQ using one single topic.

Thanks,
reply
    Bookmark Topic Watch Topic
  • New Topic