|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
(CCDT) Share Connection object for Queue and Topic |
« View previous topic :: View next topic » |
Author |
Message
|
mchan |
Posted: Fri Nov 04, 2011 2:20 am Post subject: (CCDT) Share Connection object for Queue and Topic |
|
|
Apprentice
Joined: 09 Sep 2011 Posts: 29
|
Hi,
I am using CCDT to connect my JMS client with V7 QM. In my app, I use both queue and topic. If I individually create QCF and TCF (with same CCDT URL as parameter), the Queue connection and Topic connection created from QCF and TCF may ends up in different QM (though same CCDT is used), because I need to use AFFINITY(NONE) for load balancing.
Is that anyway to solve this?
In my app, can I just create one connection serving both Queue and Topic?
or can I use MQConnectionFactory instead of QCF and TCF to create connections, and cast it to QCF and TCF as needed?
Thanks,
Mike |
|
Back to top |
|
 |
zpat |
Posted: Fri Nov 04, 2011 2:36 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You only need one connection to the queue manager.
How this maps to JMS calls - I can't tell you - someone else will know. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 04, 2011 6:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
zpat wrote: |
You only need one connection to the queue manager.
How this maps to JMS calls - I can't tell you - someone else will know. |
You need to have a look at the JMS API's. (JMS 1.1 and JMS 1.2)
Use a Connection created from a ConnectionFactory.
Then you can create a MessageConsumer on it with a Destination...
The destination is a generic object. Only the instance will distinguish between Topic or Queue.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|