Author |
Message
|
lecmns |
Posted: Tue Jan 15, 2002 9:52 pm Post subject: |
|
|
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 |
|
 |
bduncan |
Posted: Thu Jan 17, 2002 2:34 pm Post subject: |
|
|
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 |
|
 |
lecmns |
Posted: Thu Jan 17, 2002 9:28 pm Post subject: |
|
|
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 |
|
 |
bduncan |
Posted: Fri Jan 18, 2002 2:16 pm Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Fri Jan 18, 2002 2:57 pm Post subject: |
|
|
 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 |
|
 |
EddieA |
Posted: Fri Jan 18, 2002 3:23 pm Post subject: |
|
|
 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 |
|
 |
|