ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How to send msgs to more than one MQ Queues

Post new topic  Reply to topic
 How to send msgs to more than one MQ Queues « View previous topic :: View next topic » 
Author Message
Umarul Farooq
PostPosted: Sun Jan 15, 2012 4:09 am    Post subject: How to send msgs to more than one MQ Queues Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 15, 2012 4:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Umarul Farooq
PostPosted: Sun Jan 15, 2012 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Sun Jan 15, 2012 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sun Jan 15, 2012 9:37 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

A good place to begin your WMQ training http://www.redbooks.ibm.com/abstracts/sg247583.html
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How to send msgs to more than one MQ Queues
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.