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: Problem with failover and consumer
Date Tue, 26 Sep 2006 13:17:00 GMT
Am confused. You can only configure a destionation policy in the
broker. The applicationContext XML is used by your JMS client to
create Destination objects which are quite diferent things.

On 9/26/06, nusa <setianusa07@yahoo.co.uk> wrote:
>
> Sorry James, confuse again.
>
> My applicationContext is like this :
> ...
>     <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue"
> autowire="constructor">
>         <constructor-arg>
>             <value>org.apache.activemq.spring.Test.spring.queue</value>
>         </constructor-arg>
>     </bean>
> ...
>
> and my activemq.xml is  :
> ...
>         <!-- In ActiveMQ 4, you can setup destination policies -->
>         <destinationPolicy>
>             <policyMap>
>                  <policyEntries>
>                     <policyEntry queue="MYQUEUE.QUEUE">
>                         <dispatchPolicy>
>                             <strictOrderDispatchPolicy />
>                         </dispatchPolicy>
>                     </policyEntry>
>                 </policyEntries>
>             </policyMap>
>         </destinationPolicy>
> ...
>
> How to define <destinationPolicy> inside my applicationContext ? What will
> be the value of <constructor-arg> in the bean "destination"  ?
>
> Thanks.
>
>
> James.Strachan wrote:
> >
> > On 9/26/06, nusa <setianusa07@yahoo.co.uk> wrote:
> >>
> >> OK,  so how to define that destination policy within applicationContext ?
> >
> > There's an example on the link I just gave
> > http://incubator.apache.org/activemq/per-destination-policies.html
> >
> > you define them inside the broker element
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Problem-with-failover-and-consumer-tf2337476.html#a6506563
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message