you need to add the attribute: persistenceFlag="true"

On 3 March 2010 11:55, BenXS <bxsto...@yahoo.co.uk> wrote:

>
> So ok, I inserted the code:
>
> <bean xmlns="http://www.springframework.org/schema/beans";
> id="forcePersistencyModeBroker"
> class="org.apache.activemq.plugin.ForcePersistencyModeBrokerPlugin">
> <property name="persistenceFlag" value="false"/>
> </bean>
>
> from page:
>
> D:\java\JMS\Apache ActiveMQ\docs\initial setup\config persistence\enforcing
> persistency\Enforcing persistent mode for incoming messages (03.2010).mht
>
> into the
>
> <plugins>
> ...
> </plugins>
>
> section of activemq.xml. Then I restarted ActiveMQ and sent an JMS message
> to the MessBroker.
> The JMS message appears in the ActiveMQ browser console.
> Now I restarted ActiveMQ and .... the JMS msgs is destroyed. No JMS msgs is
> visible in Queue in browser console. There is still no persistency!
>
> So how does force persistency work otherwise?
>
> Ben
>
>
> Gary Tully wrote:
> >
> > yea. that plugin is part of 5.3, the fix version is 5.3.0 so you just
> need
> > to add the relevant config,
> > It is an element in the plugins list and uses xbean so you can use
> > <plugins>
> >  <forcePersistencyModeBrokerPlugin/>
> > </plugins>
> >
> > see: http://activemq.apache.org/developing-plugins.html
> >
> > On 3 March 2010 10:04, BenXS <bxsto...@yahoo.co.uk> wrote:
> >
> >>
> >> Ok, thank you. But one more question:
> >>
> >> On the bottom of the webpage you mentioned it is written:
> >>
> >> "Patch applied in revision 800274"
> >>
> >> What does that mean? A patch is a fix for a bug. But the missing "force
> >> persistency" is not a bug but a new feature.
> >> Furthermore a revision is listed: Is this revision part of the already
> >> released version 5.3?
> >>
> >> Does that mean that I do not have to compile the attached *.java files
> >> because they are already included in v5.3? That would mean I have only
> to
> >> write the <bean> statements into activemq.xml
> >>
> >> Is this correct?
> >>
> >> Ben
> >>
> >>
> >>
> >> Gary Tully wrote:
> >> >
> >> > see https://issues.apache.org/activemq/browse/AMQ-2339 for a plugin
> >> that
> >> > forces all messages to be persistent.
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-to-enable-file-based-persistence---tp27637236p27766258.html
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > http://blog.garytully.com
> >
> > Open Source Integration
> > http://fusesource.com
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-enable-file-based-persistence---tp27637236p27767242.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Reply via email to