3 Replies Latest reply on Jul 29, 2004 5:43 AM by sandeep_rajpathak

    Problems with JCA15 implementation in JBoss 4.0 DR4

    sandeep_rajpathak

      I am using the JBoss 4.0 DR4 and have encountered the following problem -

      I am deploying a resource adapter as an rar file whose deployment descriptor file ra.xml looks like -
      -----------------------------------
      <?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">

      <display-name>Test Adapter</display-name>
      <vendor-name>Testing</vendor-name>
      <eis-type>Test</eis-type>
      <resourceadapter-version>1.0</resourceadapter-version>

      <resourceadapter-class>com.test.ejb.connector.jca15.ResourceAdapterImpl</resourceadapter-class>

      <config-property>
      <config-property-name>ConfigProp1</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>D:/test/ejb_sample.dat</config-property-value>
      </config-property>
      <config-property>
      <config-property-name>ConfigProp2</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>/test/private/testing</config-property-value>
      </config-property>
      <config-property>

      <outbound-resourceadapter>
      <connection-definition>
      <managedconnectionfactory-class>com.test.ejb.connector.jca15.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
      <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>com.test.ejb.connector.jca15.ConnectionFactoryImpl</connectionfactory-impl-class>
      <connection-interface>javax.resource.cci.Connection</connection-interface>
      <connection-impl-class>com.test.ejb.connector.jca15.ConnectionImplJCA15</connection-impl-class>
      </connection-definition>
      <transaction-support>NoTransaction</transaction-support>
      <reauthentication-support>false</reauthentication-support>
      </outbound-resourceadapter>



      ------------------------------------

      In my Resource adapter implementation class I have javabean functions for ConfigProp1 and ConfigProp2. On deployment these functions are getting called but the value passed to function is null. What could be the problem here?

      Also I have the same functions in my ManagedConnectionFactory implementation class also (as I had a JCA10 connector earlier). This class implements ResourceAdapterAssociation. Going by the JCA15 specs, the container should call setResourceAdapter on this class, which it correctly does but it also calls these javabean functions. This inspite of the fact that my ds-xml does not define these properties for the connection factory?