Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing local and remote queue

Status
Not open for further replies.

rama1977

Programmer
Jun 19, 2003
2
IN
Hi,

I am just learning MQSeries, and i have a requirement that the listener which we are using basically a java program which listens to the local queue for incoming messages should also listen to the remote queue.Ie Whether the same listener can be used for listening to both local and remote queue or we have to use a seperate listener for remote queue.Kindly also suggest me some good material on MQSeries for java,where i can learn more things about setting up queue and accessing them and other details.



Thanks
Rama
 
you got to use different listener programs to listen on different queues. A single listener cannot achieve this task. Each listener listens on a particular port and from a particular queue. It does a waited get on that queue and this cannot be done for more than one queue. Unless you are doing multithreading. I am not sure how you could do this, but i am not rejecting the possibility.

Hope this helps.


Cheers
KK
 
Hi,

Thanks for your reply.So if i am not handling multithreading then the same listener cannot handle more than 1 queue.Thats what u say,correct.Ok.



Regards
Rama
 
Thats exactly it per my understanding. I am not so sure of any new features added in this area in v5.3.



Cheers
KK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top