|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Persistence & Message Expiration time |
« View previous topic :: View next topic » |
Author |
Message
|
hrysd35 |
Posted: Fri Mar 12, 2004 3:58 pm Post subject: Message Persistence & Message Expiration time |
|
|
Newbie
Joined: 12 Mar 2004 Posts: 1
|
Hello forum-
I'm kind of confused between Message Persistence & Message Expiration time. Can somebody please elaborate on the same.
I also have following questions -
1) When I make a message Persistence, does it automatically have Infinite Expiration time.
2) If the answer to above question is no, then how do I set an expiration time on the Persistent message.
Thank you. |
|
Back to top |
|
 |
kirani |
Posted: Fri Mar 12, 2004 5:09 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Message Persistence (MQMD.Persistence) and Message Expiry (MQMD.Expiry) are different properties of the messages.
IF a message is flagged as Persistent, then it get's logged into log file by the queue manager. You can set this property by assigning appropriate value/constant (MQPER_NOT_PERSISTENT, MQPER_PERSISTENT or MQPER_PERSISTENCE_AS_Q_DEF) to this field.
Messages can be marked for expiry by setting Expiry time (in tenths of a second) in MQMD.Expiry field. The message becomes eligible to be discarded if it has not been removed from the destiantion queue before this period of time elapses.
hrysd35 wrote: |
1) When I make a message Persistence, does it automatically have Infinite Expiration time.
|
No. As I said earlier, these are two different properties.
hrysd35 wrote: |
2) If the answer to above question is no, then how do I set an expiration time on the Persistent message.
|
Set your MQMD.Expiry to any number.
I aslo recommend following reading material, which will shed more light on these
WebSphere MQ Application Programming Reference
Websphere MQ Application Programming Guide _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|