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