Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-689

Cannot set MDB activation config maxSessions property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M4
    • 1.0
    • None
    • None

    Description

      The following OpenEJB deployment descriptor:

      <message-driven>
      <ejb-name>SomeMDB</ejb-name>
      <resource-adapter>
      <resource-link>SomeJMSResources</resource-link>
      </resource-adapter>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>maxSessions</activation-config-property-name>
      <activation-config-property-value>10</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>destinationType</activation-config-property-name>
      <activation-config-property-value>javax.jms.Topic</activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>destination</activation-config-property-name>
      <activation-config-property-value>SomeTopic</activation-config-property-value>
      </activation-config-property>
      </activation-config>
      </message-driven>

      causes the following exception during deployment:

      13:30:45,587 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: obje
      ctName="geronimo.server:EJBModule=com.ibm.workdev.v1.ejb.jar,J2EEApplication=com/ibm/workdev/v1,J2EE
      Server=geronimo,j2eeType=JCAActivationSpec,name=Statistics"
      java.lang.ClassCastException
      at org.activemq.ra.ActiveMQActivationSpec$$FastClassByCGLIB$$47bafc00.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.DynamicGBeanDelegate$Operation.invoke(DynamicGBeanDelegate.java
      :155)
      at org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:130
      )
      at org.apache.geronimo.connector.ActivationSpecWrapper.setAttribute(ActivationSpecWrapper.ja
      va:118)
      at org.apache.geronimo.gbean.runtime.GBeanAttribute$DynamicSetterMethodInvoker.invoke(GBeanA
      ttribute.java:414)
      at org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue(GBeanAttribute.java:387)
      at org.apache.geronimo.gbean.runtime.GBeanAttribute.inject(GBeanAttribute.java:318)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:839)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.
      java:328)

      Together with issue http://issues.apache.org/jira/browse/GERONIMO-688 this makes configuring MDB that listens to given topic not possible.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wfrag Ivan Dubrov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: