Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send msgs to more than one MQ Queues  RSS feed

Muhammed Fataq
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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; = channel;
MQEnvironment.port = portNo;, 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
Abdul Fataq
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!