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 » Listener and time out..

Post new topic  Reply to topic
 Listener and time out.. « View previous topic :: View next topic » 
Author Message
lecmns
PostPosted: Mon Feb 18, 2002 5:23 am    Post subject: Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

fOlks..

one doubt..
I have a QueueSender who has send a message to a queue.
I have a listener spawned up on the same queue for the response catch.

But suppose my request message times out.
How do I get to know about it?
How can I, then remove my listener from listening for the response?
Can I set a timeout for the listener or only for the message?

I am using MQ JMS APIs..

MNS
Back to top
View user's profile Send private message
bduncan
PostPosted: Tue Feb 19, 2002 11:37 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

MNS,
You have previously asked similar questions in another of your posts:
http://www.mqseries.net/phpBB/viewtopic.php?topic=1270&forum=12

Were your questions not adequately answered, or are these questions in some way different from the previous ones?


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
lecmns
PostPosted: Fri Feb 22, 2002 9:20 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

Hi bduncan,

I sure have asked similar questions but my doubts are not fully cleared.
I guess it's probably because I am playing around with MQ JMS.

please correct me if I am wrong.

I have my queues clustered. So, once I send a message, the setting is in such a way that sender will not know where the request is gone. It will reach one of the repository queue manager and someone will pick it up, process it and put the response back with a different tag. Sender now has a receiver listening to get this response. Now, he has to listen on the same repository Queuemanger to get this back. But sender can initially send the message to any of the queue managers available, right? Now, that's one confusion I have

If I am not listening for a response, I still require a listener of some characters to find out if my message has timed out? I have push scnearios as well as request - response scenarios and hence is this confusion.

My question was about timing out a message listener and not a receiver. Listener as far as I know, will wait on a queue will it gets the message. But I want this listener to time out if I don't get the message for sometime. I can do this on receiver but I guess listener will be more efficient. This was my doubt. Hope you got my point.

Thankx.. it's still a confusion for me..

MNS
Back to top
View user's profile Send private message
zpat
PostPosted: Sun Feb 24, 2002 12:10 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Listener/Receiver? I don't understand what these terms mean in MQSeries programming.

The usual way to handle MQSeries message response retrieval is to issue a MQGET with WAIT on a Correlid. If you want these messages to expire (which is actually a good idea to avoid orphaned messages hanging about indefinitely) then arrange for the expiry interval to be a little longer than the WAIT interval.
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 Java / JMS » Listener and time out..
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.