activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jiunjiunma <jiunjiu...@gmail.com>
Subject Re: spring dsl sample for redelivery policy
Date Tue, 13 Nov 2012 18:28:42 GMT
Yes, it is. That's actually what I set but did not work in activemq 5.7. As
another thread indicates
(http://activemq.2283324.n4.nabble.com/Redelivery-policy-broken-in-5-7-0-td4658304.html),
it seems to be an regression. 

Thanks a lot for your help. It's very helpful.

--Jiunjiun


Torsten Mielke-2 wrote
> Hello,
> 
> How about this Spring config? 
> <bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
>   
> <property name="initialRedeliveryDelay" value="5000" />
>   
> <property name="redeliveryDelay" value="5000" />
>   
> <property name="maximumRedeliveries" value="-1" />
> </bean>
> 
> <bean id="AmqCF" class="org.apache.activemq.ActiveMQConnectionFactory">
>    
> <property name="brokerURL" value="failover:(tcp://localhost:61616)" />
>    
> <property name="redeliveryPolicy" ref="redeliveryPolicy" />
>  
> </bean>
> 
> You may want to set the redelivery policy on the ActiveMQConnectionFactory
> not on the PooledConnectionFactory.
> Is this what you are looking for? 
> 
> Hope this helps.
> 
> Regards,
> Torsten Mielke

> torsten@

> tmielke.blogspot.com
> 
> 
> On Nov 13, 2012, at 7:12 AM, jiunjiunma wrote:
> 
>> Hi,
>>    Does anyone have a sample on how to set the redelivery policy in
>> spring
>> DSL? The pooled connection factory only takes a delivery policy (not a
>> delivery policy map) and I got an exception saying destination is not set
>> when I set the ref to a RedeliveryPolicy object. According to this doc 
>> http://activemq.apache.org/redelivery-policy.html
>> &lt;http://activemq.apache.org/redelivery-policy.html&gt;  , it should
>> take a
>> RedeliveryPolicyMap. 
>>    A sample file will be really helpful.
>> 
>> Thanks,
>> --Jiunjiun
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/spring-dsl-sample-for-redelivery-policy-tp4659223.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.





--
View this message in context: http://activemq.2283324.n4.nabble.com/spring-dsl-sample-for-redelivery-policy-tp4659223p4659268.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message