activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil White <>
Subject Re: Non-persistent deliverymode not effect.
Date Tue, 02 Aug 2016 15:38:40 GMT
Two years on I saw the same thing, that Spring's JMSTemplate seems to ignore
non-persistent delivery configuration, and always sends as persistent.
Tracing through JMSTemplate it turns out that deliveryMode, priority, and
timeToLive are ignored during send() unless "explicit QOS" is enabled, ie.
jmsTemplate.setExplicitQosEnabled(true). Or alternatively the equivalent in
the Spring app context:

	<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
		<property name="connectionFactory">
			<ref local="jmsFactory"/>
		<property name="pubSubDomain" value="true"/>
		<property name="deliveryPersistent" value="false"/>
		<property name="deliveryMode" value="1"/>
		<property name="explicitQosEnabled" value="true"/>

I'm sure the OP found the same thing out years ago, but just for anyone else
with the same problem.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message