users@glassfish.java.net

Some MDB activation-config properties dont work

From: Alex Sherwin <alex.sherwin_at_acadiasoft.com>
Date: Tue, 20 Jan 2009 10:19:08 -0500

I've tried setting the following mdb resource adapter config properties in
both the ejb-jar.xml and sun-ejb-jar.xml. For example, from
sub-ejb-jar.xml:

      <mdb-resource-adapter>
        <resource-adapter-mid>jmsra</resource-adapter-mid>
        <activation-config>
          <activation-config-property>
 
<activation-config-property-name>ReconnectEnabled</activation-config-propert
y-name>
 
<activation-config-property-value>true</activation-config-property-value>
          </activation-config-property>
          <activation-config-property>
 
<activation-config-property-name>ReconnectAttempts</activation-config-proper
ty-name>
 
<activation-config-property-value>-1</activation-config-property-value>
          </activation-config-property>
          <activation-config-property>
 
<activation-config-property-name>ReconnectInterval</activation-config-proper
ty-name>
 
<activation-config-property-value>30000</activation-config-property-value>
          </activation-config-property>
        </activation-config>
      </mdb-resource-adapter>

However, I always get the following warnings when deploying the EAR:

[#|2009-01-19T17:46:00.718-0500|WARNING|sun-appserver9.1|javax.enterprise.re
source.resourceadapter|_ThreadID=15;_ThreadName=httpWorkerThread-8048-12;set
ReconnectEnabled;com.sun.messaging.jms.ra.ActivationSpec;_RequestID=cd19d7d9
-fddc-4ba5-a595-1e62a19b5d6b;|RAR8000 : The method setReconnectEnabled is
not present in the class : com.sun.messaging.jms.ra.ActivationSpec|#]

[#|2009-01-19T17:46:00.718-0500|WARNING|sun-appserver9.1|javax.enterprise.re
source.resourceadapter|_ThreadID=15;_ThreadName=httpWorkerThread-8048-12;Rec
onnectEnabled;com.sun.messaging.jms.ra.ActivationSpec;_RequestID=cd19d7d9-fd
dc-4ba5-a595-1e62a19b5d6b;|RAR7097: No setter method present for the
property ReconnectEnabled in the class
com.sun.messaging.jms.ra.ActivationSpec|#]

I get these for all of the above properties, whether specified in
ejb-jar.xml or sub-ejb-jar.xml


However, if I peruse the properties in the domain for the JMS Service, I see
that all of these properties are exposed on the JMS Service itself:

asadmin> get --port 8048 server.jms-service.*
server.jms-service.addresslist-behavior = random
server.jms-service.addresslist-iterations = 3
server.jms-service.default-jms-host = default_JMS_host
server.jms-service.init-timeout-in-seconds = 60
server.jms-service.mq-scheme =
server.jms-service.mq-service =
server.jms-service.reconnect-attempts = 3
server.jms-service.reconnect-enabled = true
server.jms-service.reconnect-interval-in-seconds = 5
server.jms-service.start-args = -Dimq.autocreate.queue=false
-Dimq.autocreate.topic=false
server.jms-service.type = LOCAL

I would be perfectly happy to set them in this manner, if this is the
appropriate way to do so...




Alex Sherwin
alex.sherwin_at_acadiasoft.com