users@glassfish.java.net

Re: JMS retry count setting?

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Mar 2007 08:52:20 PST

What did you guys figure out on this one???? I've tried resource injection:

@MessageDriven(mappedName = "jms/FlexiMessageJMSRequest", activationConfig =
{
   @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
   @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
   @ActivationConfigProperty(propertyName = "EndpointExceptionRedeliveryAttempts", propertyValue = "10"),
   @ActivationConfigProperty(propertyName = "EndpointExceptionRedeliveryInterval", propertyValue = "2000")
   
})

And, since I'm using NetBeans, I modified the jms-jms_mdbname.sun-resource file

<?xml version="1.0" encoding="UTF-8"?>
<resources>
  <admin-object-resource enabled="true" jndi-name="jms/FlexiMessageJMSRequest" object-type="user" res-adapter="jmsra" res-type="javax.jms.Queue">
    <description/>
    <property name="Name" value="FlexiMessageJMSRequest"/>
    <property name="EndpointExceptionRedeliveryAttempts" value="10" />
    <property name="EndpointExceptionRedeliveryInterval" value="2000"/>
  </admin-object-resource>
</resources>


The latter did affect the EndpointExceptionRedeliveryInterval value displayed in the log, but not the EndpointExceptionRedeliveryAttempts.

Thanks!
[Message sent by forum member 'gbarnard' (gbarnard)]

http://forums.java.net/jive/thread.jspa?messageID=208152