on 10-17-2011 10:14 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.