Hi, at a first glance, it looks like the docs are just out-dated.
I would check the docs of the latest activemq (classic) version used in TomEE 8 and compare, if these properties are still available or have changed: https://activemq.apache.org/components/classic/documentation/redelivery-policy Gruß Richard On 2024/06/17 11:47:31 chege wrote: > Hi, > > I have tried deploying this mdb in tomee 8.0.15 but keeps failing. > > MDB > > @MessageDriven(activationConfig = { > @ActivationConfigProperty(propertyName = "useJndi", propertyValue = > "false"), > @ActivationConfigProperty(propertyName = "destination", > propertyValue = "getnews"), > @ActivationConfigProperty(propertyName = "destinationType", > propertyValue = "javax.jms.Queue"), > @ActivationConfigProperty(propertyName = "initialRedeliveryDelay", > propertyValue = "60000"), > @ActivationConfigProperty(propertyName = "maximumRedeliveries", > propertyValue = "20"), > @ActivationConfigProperty(propertyName = > "redeliveryBackOffMultiplier", propertyValue = "2"), > @ActivationConfigProperty(propertyName = > "redeliveryUseExponentialBackOff", propertyValue = "true") > }) > public class A implements MessageListener { > > @Override > public void onMessage(Message msg) { > > > > } > > } > > > tomee.xml > > <Resource id="ActiveMQResourceAdapter" type="ActiveMQResourceAdapter"> > # Do not start the embedded ActiveMQ broker > BrokerXmlConfig = > ServerUrl = tcp://localhost:61616 > </Resource> > > Error: > > Caused by: org.apache.openejb.OpenEJBException: Unable to create > activation spec: No setter found for the activation spec properties: > [RedeliveryUseExponentialBackOff, redeliveryBackOffMultiplier] > > > Acccording to the error [redeliveryBackOffMultiplier, > redeliveryUseExponentialBackOff] are unknown. > > I am refering to this documentation > https://tomee.apache.org/latest/docs/jms-resources-and-mdb-container.html > > What I am doing wrong? > > Chege > >