You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by thyr <tr...@gmx.net> on 2007/10/17 16:48:48 UTC
Re: Message persistence
James.Strachan wrote:
>
> You set this flag on the MessageProducer in JMS - not the message
>
As far as I can see this doesn't helps if I use Spring's jmsTemplate. I'd
like to configure the template like this (neglecting pooling issues)
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="deliveryPersistent" value="false"/>
</bean>
As Dziugas Baltrunas mentioned this has no effect. Messages are still marked
as persistent.
Is it possible with spring to configure "persistence per message" (as I need
to)?
Thanks in advance!
Regards,
Reidar
--
View this message in context: http://www.nabble.com/Message-persistence-tf4222869s2354.html#a13254836
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Message persistence
Posted by Reidar <rh...@gmx.net>.
James.Strachan wrote:
>
> You've gotta enable "explicitQosEnabled" to be true. See the Spring
> docs & JavaDocs
>
Many thanks!
For the sake of completeness:
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="deliveryPersistent" value="false"/>
<property name="explicitQosEnabled" value="true" />
</bean>
That's it.
Reidar
--
View this message in context: http://www.nabble.com/Message-persistence-tf4222869s2354.html#a13258353
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Message persistence
Posted by James Strachan <ja...@gmail.com>.
On 17/10/2007, thyr <tr...@gmx.net> wrote:
>
>
> James.Strachan wrote:
> >
> > You set this flag on the MessageProducer in JMS - not the message
> >
>
> As far as I can see this doesn't helps if I use Spring's jmsTemplate. I'd
> like to configure the template like this (neglecting pooling issues)
>
> <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
> <property name="connectionFactory" ref="connectionFactory" />
> <property name="deliveryPersistent" value="false"/>
> </bean>
>
> As Dziugas Baltrunas mentioned this has no effect. Messages are still marked
> as persistent.
You've gotta enable "explicitQosEnabled" to be true. See the Spring
docs & JavaDocs
> Is it possible with spring to configure "persistence per message" (as I need
> to)?
Using the JMS API yes - using Spring no - unless you use different
jmsTemplate instances, one for persistent one for non-persistent
--
James
-------
http://macstrac.blogspot.com/
Open Source SOA
http://open.iona.com