Hi,

When I try to set *redeliveryUseExponentialBackOff* on my MDB I'm getting
the following exception:
Exception: class org.apache.openejb.OpenEJBException: Unable to create
activation spec: No setter found for the activation spec properties:
[redeliveryUseExponentialBackOff]: Unable to create activation spec: No
setter found for the activation spec properties:
[redeliveryUseExponentialBackOff]

I copied the property name from here:
http://tomee.apache.org/jms-resources-and-mdb-container.html

Also, *initialRedeliveryDelay* is not working, when a exception happen the
onMessage() is called again immediately.

Am I missing something?

Thanks

*MDB code:*
@MessageDriven(activationConfig = {
   @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
   @ActivationConfigProperty(propertyName = "destination", propertyValue =
"EmailQueue"),
   @ActivationConfigProperty(propertyName = "initialRedeliveryDelay",
propertyValue = "30000"),
   @ActivationConfigProperty(propertyName =
"redeliveryUseExponentialBackOff", propertyValue = "true")})
public class JmsEmailQueueReceiverMdb implements MessageListener
{
 @Override
public void onMessage(Message message)
{
 try
{
TextMessage textMessage = (TextMessage) message;

JmsHtmlEmail jmsHtmlEmail =
Base64Gson.getInstance().fromJson(textMessage.getText(),
JmsHtmlEmail.class);

//doSend(jmsHtmlEmail);
 throw new MessagingException();
}
catch(Exception exception)
 {
exception.printStackTrace();
new DefaultExceptionMail(getClass().getSimpleName(), exception);
 throw new EJBException(exception);
}
}

Reply via email to