cancel
Showing results for 
Search instead for 
Did you mean: 

Default value for Time to Live parameter in Receiver JMS

former_member182412
Active Contributor
0 Kudos

HI Experts,

I got Proxy to JMS scenario, currently we are sending the messages to JMS queue but they are disappearing after some time from the queue, what is the default value for time to live(TTL) parameter in Receiver JMS channel. Can we set this parameter in the channel??

is this JMS Message Expiry Period(msec) parameter to set up for this?? currently the vaue is "-1", so what is "-1" means???

Thanks for your assistance.

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Praveen,

JMS Message Expiry Period(msec) is indeed the Time To Live Parameter. Normally a value of 0 in this implies that the message is persisted in the Queue / Messaging System until the Consumer reads this message.

Can you let us know which JMS provider you are connecting to? Probabaly -1 is a custom value defined by that provider and it would be worth looking up their documentation.

More on the TimeTo Live Value as 0 is here,

http://download.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#setTimeToLive(long)

Regards,

Bhavesh

former_member182412
Active Contributor
0 Kudos

Hi Bhavesh i am using Webshere MQ JMS provider, so is "-1" means unlimited in this case???