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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/

Reply via email to