Hi Dan, 

Yes, that's doable, not on a destination basis, but for each message. It means 
that its the client responsibility to decide whether a message should be 
persisted to disk by the broker or not depending on the destination of the 
message. 

Check Message.setJMSDeliveryMode() [1] and DeliveryMode [2] from the official 
JMS API documentation.

Best regards,
Reynald Borer

Links:
- [1]: 
http://download.oracle.com/javaee/1.4/api/javax/jms/Message.html#setJMSDeliveryMode(int)
- [2]: http://download.oracle.com/javaee/1.4/api/javax/jms/DeliveryMode.html



On Sunday, August 28, 2011 at 14:45 , dcheckoway wrote:

> Is it possible to enable/disable persistence on a per-destination basis? For
> example, I want queue A (can't afford to lose these messages) to have
> persistence enabled, but I want queue B (not the end of the world if there's
> some message loss) to have persistence disabled.
> 
> Doable?
> 
> -----
> Dan Checkoway
> dcheckoway gmail com
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Persistence-enabled-disabled-on-a-per-destination-basis-tp3774341p3774341.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com 
> (http://Nabble.com).


Reply via email to