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 » Need to implement synchronous call to mq

Post new topic  Reply to topic
 Need to implement synchronous call to mq « View previous topic :: View next topic » 
Author Message
Rehan
PostPosted: Mon Oct 20, 2003 5:06 pm    Post subject: Need to implement synchronous call to mq Reply with quote

Newbie

Joined: 20 Oct 2003
Posts: 1

Hey guys,
I am fairly new to mq. So this might seem like a newbie question...so my appologies. Basically, what i am trying to do is that i am posting a form to a servlet, which send the posted data to the queue. Now I need to wait for reply back from the 2 machine. What I dont know how to do is, wait for the respond. Any suggestions will greatly appreciated.
Thanks in advance.
rehan
Back to top
View user's profile Send private message
rwa
PostPosted: Tue Oct 21, 2003 12:06 am    Post subject: Reply with quote

Voyager

Joined: 22 Jan 2002
Posts: 76
Location: Duesseldorf/Germany

Hi Rehan,

first of all, MQseries uses asychronous communication. Therefore you have to "bind" two transactions together.
One approch is request/reply. In the request transaction (... send the posted data to the queue ...) a uniq identifier is created. This identifier is the messageid (MsgID). The program on the second machine reads this message and copies this MsgID into the field CorrelID of the reply message. The requesting program waits at the same time for the reply message by setting a filter on CorrelID = MsgID.

There are example programs in the software repository of MQsereis.net like
http://www.mqseries.net/pafiledb203/pafiledb.php?PHPSESSID=7eae4f506831cb3dfd158334f12881a1&action=viewfile&fid=14&id=2

There are other designs to solve your problem, but this example is a good think to start with.

Regards,

Rainer
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Need to implement synchronous call to mq
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.