[jboss-user] [JBoss Messaging] - Re: Messages are moved to expiry queue only when there is a

hendra_netm do-not-reply at jboss.com
Thu Oct 4 15:22:59 EDT 2007


hi julians37,

I just remembered, that you need to set your expire time in send method of message producer

send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)

you cannot set your message expiration by using setJMSExpiration. May be you are using this way to set your message expiration??

Btw, in my opinion you can use JMS timestamp to select messages by age.

Best Regards,
Hendra

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091711#4091711

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091711



More information about the jboss-user mailing list