Hi Christian,
You don't need to configure the activemq component with the name of
activemq.
You may configure this rededelivery activemq component with name of
rededeliveryActivemq in your spring configuration. Then You can using
different configuration on the ActiveMQConnectionFactory.
On 5/23/11 12:17 AM, Christian Müller wrote:
b) Add the options described in [1] and [2] to the activemq component to
allow the user to specify the redelivery behavior per endpoint definition:
from(activemq:queue:foo?maximumRedeliveries=10&deliveryDelay=60000&useExponentialBackOff=true&backOffMultiplier=2)
.transacted("REQUIRED")
.to("cxf:bean:orderService")
.to("activemq:queue:bar");
This options should be used to configure the JMSConnection.
I know it's also possible to configure this in the
ActiveMQConnectionFactory, but:
- We are not the "owner" of this configuration. We use an OSGI lookup to get
the reference to the exported ActiveMQConnectionFactory.
- It's a global configuration and we may need the possibility to override
some options (deliveryDelay) for other routes.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com