On 19/08/2010 15:13, Gary Tully wrote:
> setting a message time to live on each message, such that it will
> expire if there are no consumers:
> 
>         MessageProducer producer = session.createProducer(null);
>         long timeToLive = 2000; // in milliseconds
>         producer.setTimeToLive(timeToLive);
>         producer.send(...)


Thanks Gary, this should do the trick.


Cheers,


Andrew.

Reply via email to