Issue Details (XML | Word | Printable)

Key: AMQ-1697
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: Chris Josephes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

redelivery policy config failure

Created: 28/Apr/08 01:04 PM   Updated: 23/May/08 11:38 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0

Time Tracking:
Not Specified


 Description  « Hide
I'm trying to set a redelivery policy in my activemq.xml config

<policyEntry queue="ABC.Queue1">
<redeliveryPolicy maximumRedeliveries="-1">
</redeliveryPolicy>
</policyEntry>

Unfortunately, activemq is complaining about the configuraiton

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyEntry#c943d1' defined in class path resource [activemq.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'redeliveryPolicy' of bean class [org.apache.activemq.broker.region.policy.PolicyEntry]: No property 'redeliveryPolicy' found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:445)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 42 more
Caused by: org.springframework.beans.InvalidPropertyException: Invalid property 'redeliveryPolicy' of bean class [org.apache.activemq.broker.region.policy.PolicyEntry]: No property 'redeliveryPolicy' found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:377)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1177)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
... 46 more



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Dejan Bosanac added a comment - 29/Apr/08 12:56 AM
Default broker redelivery policy is not configurable through the xbean configuration of policies (though it could be a nice enhancement). You can adapt redelivery policy on the consumer side, by setting it on a connection, connection factory or a consumer (if you need per-destination funcionality). Take a look at http://activemq.apache.org/redelivery-policy.html for more info

Filip Hanik added a comment - 08/May/08 10:17 AM

Chris Josephes added a comment - 08/May/08 01:29 PM
That's the reference document I initially found, so I was surprised to get the error after following the example.

It would be a great feature to have if it means I don't have to remind every consumer writer about the need to specify the redelivery policy.


Chris Josephes added a comment - 23/May/08 11:38 AM
Can I get this ticket re-opened, or an update?

It looks like there's a disagreement between what ActiveMQ is or is not supposed to do.

Either way, I'd like the ability to specify redelivery policies from an ActiveMQ configuration.