|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to send msgs to more than one MQ Queues |
« View previous topic :: View next topic » |
Author |
Message
|
Umarul Farooq |
Posted: Sun Jan 15, 2012 4:09 am Post subject: How to send msgs to more than one MQ Queues |
|
|
Novice
Joined: 15 Jan 2012 Posts: 14
|
Dear All,
I have the requirement to send messages from java batch process to more than one Websphere MQ queues, which (queues) are resides on different servers.
We can send messages from java application to Websphere MQ queues which are resides in single server using below configurations
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.port = portNo;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);
Could you please some one help me to configure more than one Websphere MQ hostname, channel, portNo and other properties for each MQ servers, which i want to connect from same java application.
Since hostname, channel and portNo are static attributes in MQEnvironment class, I am not sure how to configure each MQ servers required attributes ?...
Thanks & Regards
Umarul Farooq |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 15, 2012 4:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Wrong approach / design. Lookup Pub/Sub concepts in the infocenter...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Umarul Farooq |
Posted: Sun Jan 15, 2012 9:25 am Post subject: |
|
|
Novice
Joined: 15 Jan 2012 Posts: 14
|
Thank you very much for the answer.
Actually i need to send messages to different queues which are resides in different physical servers. The messages are also unique for each queues.
Pub/Sub (Topic) is intended to send same message to more than recipients, But here the messages are different for each queues.
Our Java batch process will lookup the Database and collect the different recipient's data and need to send those data to different queues.
Could you please give your valuable thoughts to solve this problem.
Thank you. |
|
Back to top |
|
 |
zpat |
Posted: Sun Jan 15, 2012 9:26 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Generally an application connects to only one queue manager. Simply arrange for remote queue definitions on that queue manager.
This is MQ day 1 page 1 stuff.
Use the IBM education assistant or something. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Jan 15, 2012 9:37 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
|
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
|
|
|
|