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 » timeOut scenarios

Post new topic  Reply to topic
 timeOut scenarios « View previous topic :: View next topic » 
Author Message
lecmns
PostPosted: Tue Jan 15, 2002 9:52 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

fOlks,

another doubt..

suppose I am logging a message..
so, I will not be spawning up a listener in the sender side, right?
so, the sender will put the log message ito the queue and some listener in the other side will pick it up and log into flatfile/dbase.

my doubt is what if this log message put into the queue, expires? or rather if this is timed out.. what will happen?

will my sender module still get something like a status message? or rather how's that possible? as I don't have a listener at sender side even to get the time out status message back..

I am confused, guys..
help me out..

Thankx in advance
MNS
Back to top
View user's profile Send private message
bduncan
PostPosted: Thu Jan 17, 2002 2:34 pm    Post subject: Reply with quote

Padawan

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

Well, as far as protecting against the message expiring on the queue, you can set the expiry of the message when you create it. This way, you can set an infinite expiration time, which means the message will never expire. Also, you can utilize what is called COA/COD to inform the sending application when the message has arrived at the destination queue, and been picked up by the listening application.

_________________
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: Thu Jan 17, 2002 9:28 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

Thankx Duncan for the fast reply..

but I am using MQ JMS APIs.. I don't know if the message sender will ever get something like that in this case. well.. i don't know.. I am doubtful about this only because I am not spawning up a listener thread for a time out status message. so, just wondering how I'll get that time out info. I am not using MQ APIs..

Thankx in advance
MNS
Back to top
View user's profile Send private message
bduncan
PostPosted: Fri Jan 18, 2002 2:16 pm    Post subject: Reply with quote

Padawan

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

Unfortunately, most of my experience with Java/MQSeries is via the MQI interface, not JMS. Perhaps someone else knows the answer to this? (madly tapping SOS against the monitor)


_________________
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
kolban
PostPosted: Fri Jan 18, 2002 2:57 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Have a good read of the Using Java manual as part of MA88. You will find in there the JMS_IBM_Report_Expiration property of a message. This can take one of the following values:


MQRO_EXCEPTION
MQRO_EXCEPTION_WITH_DATA
MQRO_EXCEPTION_WITH_FULL_DATA

If the message expires, a response message will be sent to the reply queue.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Jan 18, 2002 3:23 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

But beware. The Message Expired reply will only be sent when a GET (or browse) is done against the queue where the message is. So, if no GET is done, no reply will be sent.

Cheers,

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » timeOut scenarios
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.