File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes MQ (Messaging Queue) connection using Topics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "MQ (Messaging Queue) connection using Topics" Watch "MQ (Messaging Queue) connection using Topics" New topic
Author

MQ (Messaging Queue) connection using Topics

Virendrasinh Gohil
Ranch Hand

Joined: Jun 09, 2004
Posts: 46
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,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MQ (Messaging Queue) connection using Topics
 
Similar Threads
ejb question
MDB for a topic and the deployment descriptor
Connecting to J2EE Server installed in Solaris
does JBoss ship with a predefined TopicConnectionFactory?
JMS - rollback but no redelivery