There is nothing obviously wrong in the posted snippets.  Is it possible to
use a debugging and put a break-point on the line of code that sends
(interestingly, that line of code is missing from the snippets given)?

Note that I believe this has no effect as the broker calls it internally: 
                objMsg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT); 

That's as called-out in the JMS spec.  The JMS* fields are used internally
and client's changing their values has no effect.

With that said, the property on the JMS template should do the job.

Verify that either the send() call in the MessageProducer is getting passed
the NON_PERSISTENT flag, or at least that it's deliveryMode is in-fact set
to NON_PERSISTENT.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Non-persistent-deliverymode-not-effect-tp4680457p4680486.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to