1 Reply Latest reply on Oct 15, 2005 8:53 AM by Scott Stark

    JCA 1.5 and endpointActivation

    Dmitriy Fitisov Newbie

      I'm developing a resource adapter (inbound) which has to be JCA 1.5 compliance (4.0.2).
      The resource adapter seems to be deployed ok and ResourceAdaptor.start() is called. I see nothing special in error log. But when I deploy ear with message-driven bean, no endpointActivation is called. Neither ejbCreate(), nor setMessageDrivenContext(). I guess I'm missing something in xml descriptors. Here is what I have for ear inside of jar file:

      ejb-jar.xml:

      <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
      version="2.1">
      <enterprise-beans>
      <message-driven>
      <ejb-name>FixJMDBean</ejb-name>
      <ejb-class>ca.radier.fixj.mdbean.FixJMDBean</ejb-class>
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <!--<subscription-durability>Durable</subscription-durability>-->
      </message-driven-destination>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>
      acknowledgeMode
      </activation-config-property-name>
      <activation-config-property-value>
      Auto-acknowledge
      </activation-config-property-value>
      </activation-config-property>
      <!-- <activation-config-property>
      <activation-config-property-name>
      subscriptionDurability
      </activation-config-property-name>
      <activation-config-property-value>
      Durable
      </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>
      DestinationName
      </activation-config-property-name>
      <activation-config-property-value>
      jms/testTopic
      </activation-config-property-value>
      </activation-config-property>
      -->
      </activation-config>
      <!-- <message-driven-destination>
      <jms-destination-type>
      javax.jms.Queue
      </jms-destination-type>
      </message-driven-destination>-->
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      And - ra.xml for resource adaptor:

      <?xml version="1.0" encoding="UTF-8"?>

      <connector xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
      version="1.5">

      FixJ Resource Adapter
      <display-name>FixJ Adapter</display-name>

      <vendor-name>Radier Ltd.</vendor-name>
      <eis-type>FixJ Adapter</eis-type>
      <resourceadapter-version>1.0</resourceadapter-version>

      <resourceadapter-class>ca.radier.fixj.connector.FixJResourceAdapter</resourceadapter-class>

      <inbound-resourceadapter>


      <messagelistener-type>ca.radier.fixj.mdbean.FixJMDBean</messagelistener-type>


      Thanks for any help