Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

 « Return to Thread: JCA and MDB

Re: JCA and MDB

by ardf69 :: Rate this Message:

Reply to Author | View in Thread

Hi all,
I did some more checks and I found something really strange. I tried to read the file config.ser in the META-INF for the ear and I found:

<xml-fragment version="2.1" id="ejb-jar_ID" metadata-complete="true" xmlns:jav="http://java.sun.com/xml/ns/javaee">
  <jav:display-name>UBQ_JSR212_EJB_Frontend</jav:display-name>
  <jav:enterprise-beans>
    <jav:message-driven id="UBQ_JSR212_EJB_Frontend.jar/FrontendMDB">
      <jav:ejb-name>FrontendMDB</jav:ejb-name>
      <jav:ejb-class>it.ubiquity.sams.jms.FrontendBean</jav:ejb-class>
      <jav:messaging-type>javax.jms.MessageListener</jav:messaging-type>
      <jav:transaction-type>Container</jav:transaction-type>
      <jav:message-destination-type>javax.jms.Queue</jav:message-destination-type>
      <jav:activation-config>
        <jav:activation-config-property>
          <jav:activation-config-property-name>queuePrefix</jav:activation-config-property-name>
          <jav:activation-config-property-value>f</jav:activation-config-property-value>
        </jav:activation-config-property>
        <jav:activation-config-property>
          <jav:activation-config-property-name>destination</jav:activation-config-property-name>
          <jav:activation-config-property-value>UBQ_JSR212_EJB_Frontend.jar/FrontendMDB</jav:activation-config-property-value>
        </jav:activation-config-property>
        <jav:activation-config-property>
          <jav:activation-config-property-name>destinationType</jav:activation-config-property-name>
          <jav:activation-config-property-value>javax.jms.Queue</jav:activation-config-property-value>
        </jav:activation-config-property>
      </jav:activation-config>
    </jav:message-driven>
  </jav:enterprise-beans>
  <jav:assembly-descriptor>
    <jav:container-transaction>
      <jav:method>
        <jav:ejb-name>FrontendMDB</jav:ejb-name>
        <jav:method-name>*</jav:method-name>
      </jav:method>
      <jav:trans-attribute>NotSupported</jav:trans-attribute>
    </jav:container-transaction>
    <jav:exclude-list/>
  </jav:assembly-descriptor>
</xml-fragment>

but in the ejb-jar.xml I didn't set the tags message-destination-type and the activation-configs destination and destinationType. To me this seems to be a bug!!!!
Can you confirm this?

Ciao Angelo

 « Return to Thread: JCA and MDB