You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Pep <pe...@yahoo.es> on 2006/06/12 16:18:34 UTC
ActiveMQ 4.0 Release Redelivery Policy config
Hi,
I just downloaded the ActiveMQ 4.0 Release. Our application server (OC4J)
uses the JCA 1.5 adaptor to use ActiveMQ embedded as our JMS provider. We
defined a broker-config.xml file for our specific configuration and put it
in the classpath. The file is read when starting the server (and so the
broker), but it shows an error when configuring the redelivery policy. This
is our configuration code snippet:
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry queue="QUEUE.>">
<dispatchPolicy>
<strictOrderDispatchPolicy />
</dispatchPolicy>
<subscriptionRecoveryPolicy>
<lastImageSubscriptionRecoveryPolicy />
</subscriptionRecoveryPolicy>
<deadLetterStrategy>
<individualDeadLetterStrategy queuePrefix="DLQ."
useQueueForQueueMessages="true" />
</deadLetterStrategy>
</policyEntry>
<policyEntry queue="QUEUE.>">
<redeliveryPolicy initialRedeliveryDelay="10"
useExponentialBackOff="true"
backOffMultiplier="5"
maximumRedeliveries="5" />
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
It complains that the redeliveryPolicy attribute is not existing in the
PolicyEntry class.
06/06/12 15:53:27 Warning: Unable to set up connection factory for a
resource ad
apter in systao: Failed to startup an embedded broker:
xbean:broker-config.xml,
due to: org.springframework.beans.factory.BeanCreationException: Error
creating
bean with name 'org.apache.activemq.broker.region.policy.PolicyEntry'
defined in
class path resource [broker-config.xml]: Error setting property values;
nested
exception is org.springframework.beans.NotWritablePropertyException: Invalid
pro
perty 'redeliveryPolicy' of bean class
[org.apache.activemq.broker.region.policy
.PolicyEntry]: Bean property 'redeliveryPolicy' is not writable or has an
invali
d setter method: Does the parameter type of the setter match the return type
of
the getter?
I just checked in the javadoc and it is true. But my question is, where canI
configure the RedeliveryPolicy in a declarative way?
I searched in the activemq page with no success (only found a java example)
and when I look in the forum, it seems this kind of configuration is ok ¿?
Thanks for the help.
Pep.
--
View this message in context: http://www.nabble.com/ActiveMQ-4.0-Release-Redelivery-Policy-config-t1774331.html#a4829480
Sent from the ActiveMQ - User forum at Nabble.com.
Re: ActiveMQ 4.0 Release Redelivery Policy config
Posted by Pep <pe...@yahoo.es>.
Got it. Thanks for the tip.
It is a pity it has been moved from the broker-config.xml to the ra.xml file
(where, by the way, the redelivery properties were not defined). To have it
in the broker-config.xml avoided the fact to make redeploys of the
application ear whenever these properties needed to be changed. Anyway, I
guess there may be strong reasons for doing that way.
Thanks for the help.
Pep.
--
View this message in context: http://www.nabble.com/ActiveMQ-4.0-Release-Redelivery-Policy-config-t1774331.html#a4832198
Sent from the ActiveMQ - User forum at Nabble.com.
Re: ActiveMQ 4.0 Release Redelivery Policy config
Posted by James Strachan <ja...@gmail.com>.
You can configure the redelivery policy on the resource adapter XML...
http://incubator.apache.org/activemq/resource-adapter-properties.html
On 6/12/06, Pep <pe...@yahoo.es> wrote:
>
> Hi,
>
> I just downloaded the ActiveMQ 4.0 Release. Our application server (OC4J)
> uses the JCA 1.5 adaptor to use ActiveMQ embedded as our JMS provider. We
> defined a broker-config.xml file for our specific configuration and put it
> in the classpath. The file is read when starting the server (and so the
> broker), but it shows an error when configuring the redelivery policy. This
> is our configuration code snippet:
>
> <destinationPolicy>
> <policyMap>
> <policyEntries>
> <policyEntry queue="QUEUE.>">
> <dispatchPolicy>
> <strictOrderDispatchPolicy />
> </dispatchPolicy>
> <subscriptionRecoveryPolicy>
> <lastImageSubscriptionRecoveryPolicy />
> </subscriptionRecoveryPolicy>
> <deadLetterStrategy>
> <individualDeadLetterStrategy queuePrefix="DLQ."
> useQueueForQueueMessages="true" />
> </deadLetterStrategy>
> </policyEntry>
> <policyEntry queue="QUEUE.>">
> <redeliveryPolicy initialRedeliveryDelay="10"
> useExponentialBackOff="true"
> backOffMultiplier="5"
> maximumRedeliveries="5" />
> </policyEntry>
> </policyEntries>
> </policyMap>
> </destinationPolicy>
>
> It complains that the redeliveryPolicy attribute is not existing in the
> PolicyEntry class.
>
> 06/06/12 15:53:27 Warning: Unable to set up connection factory for a
> resource ad
> apter in systao: Failed to startup an embedded broker:
> xbean:broker-config.xml,
> due to: org.springframework.beans.factory.BeanCreationException: Error
> creating
> bean with name 'org.apache.activemq.broker.region.policy.PolicyEntry'
> defined in
> class path resource [broker-config.xml]: Error setting property values;
> nested
> exception is org.springframework.beans.NotWritablePropertyException: Invalid
> pro
> perty 'redeliveryPolicy' of bean class
> [org.apache.activemq.broker.region.policy
> .PolicyEntry]: Bean property 'redeliveryPolicy' is not writable or has an
> invali
> d setter method: Does the parameter type of the setter match the return type
> of
> the getter?
>
>
> I just checked in the javadoc and it is true. But my question is, where canI
> configure the RedeliveryPolicy in a declarative way?
>
> I searched in the activemq page with no success (only found a java example)
> and when I look in the forum, it seems this kind of configuration is ok ¿?
>
> Thanks for the help.
>
> Pep.
> --
> View this message in context: http://www.nabble.com/ActiveMQ-4.0-Release-Redelivery-Policy-config-t1774331.html#a4829480
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>
--
James
-------
http://radio.weblogs.com/0112098/