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 Java / JMS » Reading from a remote Queue

Post new topic  Reply to topic
 Reading from a remote Queue « View previous topic :: View next topic » 
Author Message
joecherian
PostPosted: Sat Jan 11, 2003 12:10 am    Post subject: Reading from a remote Queue Reply with quote

Novice

Joined: 15 Dec 2002
Posts: 23
Location: India

Hello

is it possible to read mesages from a remote queue using remote queue definition ? other wise, how can i read message from a remote queue ?
can i give the queue manager and host name of the remote queue directly ?
my constraint in doing this is that i want to set transport type as MQJMS_TP_BINDINGS_MQ.

so can anyone help me as to how can i accomplish this ?
Thanks
Joe
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bmccarty
PostPosted: Sun Jan 12, 2003 4:35 pm    Post subject: You can't read remotely using bindings Reply with quote

Apprentice

Joined: 18 Dec 2001
Posts: 43

You can't read the message of a remote queue in bindings mode. You have to either establish a client connection to the remote queue manager or transport the message from the remote queue manager to a new local one.

Basically bindings mode allows your app to communicate to a queue manager directly throught the CPU/memory. Client mode goes across a network protocol (TCP).

Why do you have a requirement to use bindings? Are you trying to do some kind of 2PC or XA coordination? If it is just for performance reasons, there is a good chance that you will never see a difference if you just switched to TCP/IP.
Back to top
View user's profile Send private message AIM Address MSN Messenger
joecherian
PostPosted: Sun Jan 12, 2003 7:10 pm    Post subject: Reply with quote

Novice

Joined: 15 Dec 2002
Posts: 23
Location: India

so can you please tell me as to what all should be done to read the message from a remote queue using a client connection ?

Thanks

Joe
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bower5932
PostPosted: Mon Jan 13, 2003 6:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

To read a message from a 'remote' queue using client mode, you would set up a QCF that looked like:

def qcf(myQCF) qmgr(my.qmgr) tran(client) port(1414) channel(SYSTEM.DEF.SVRCONN)

Your program would then use this QCF which would use an MQ client connection to connect to my.qmgr. You would then be running local to the queue manager and could get from the queue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Reading from a remote Queue
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.