activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Message persistence
Date Wed, 17 Oct 2007 14:57:42 GMT
On 17/10/2007, thyr <trzbtl@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

Mime
View raw message