4 Replies Latest reply on Apr 12, 2003 12:54 PM by vkorenev

    EIS JCA connector

    amarquez

      I have a working JCA 1.0 connector, what are the steps for deploying and using this connector on JBOSS ? I want to move from WL to JBoss but I can't get the connector working.
      On deployment time it seems to work fine but when deploying an EJB that uses (res-ref) this connector I get the message:
      "No resource manager found for Log"
      (jboss 3.0.4).

      ****************ra.xml*******************
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE connector PUBLIC "-//Sun Microsystems, Inc.//DTD Connector 1.0//EN" "http://java.sun.com/dtd/connector_1_0.dtd">


      <display-name>LogTraceService</display-name>
      <vendor-name></vendor-name>
      <spec-version>1.0</spec-version>
      <eis-type>LOG</eis-type>
      Unknown

      <license-required>false</license-required>


      <managedconnectionfactory-class>com.gft.capa.connector.log.LogManagedConnectionFactory</managedconnectionfactory-class>
      <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>com.gft.capa.connector.log.LogConnectionFactory</connectionfactory-impl-class>
      <connection-interface>javax.resource.cci.Connection</connection-interface>
      <connection-impl-class>com.gft.capa.connector.log.LogConnection</connection-impl-class>
      <transaction-support>NoTransaction</transaction-support>
      <config-property>

      <config-property-name>serverName</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>LogTraceServerArq</config-property-value>
      </config-property>
      <config-property>
      <config-property-name>DMPSIPs</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>10.134.1.115</config-property-value>
      </config-property>

      **********The weblogic config-file***********

      <weblogic-connection-factory-dd>
      <connection-factory-name>com.gft.capa.connector.log.LogManagedConnectionFactory</connection-factory-name>
      <jndi-name>eis/Log</jndi-name>
      <pool-params>
      <initial-capacity>1</initial-capacity>
      <max-capacity>10</max-capacity>
      <capacity-increment>1</capacity-increment>
      <shrinking-enabled>false</shrinking-enabled>
      <shrink-period-minutes>1</shrink-period-minutes>
      </pool-params>
      </weblogic-connection-factory-dd>

      <config-property>

      <config-property-name>DMPSDomain</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>0</config-property-value>
      </config-property>
      <config-property>

      <config-property-name>profile</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>DAS2</config-property-value>
      </config-property>
      <reauthentication-support>false</reauthentication-support>



      *********EJB bean using the connector*******
      (jboss.xml)

      <enterprise-beans>

      <ejb-name>FryBean</ejb-name>
      <jndi-name>fry</jndi-name>
      <res-ref-name>Log</res-ref-name>
      <resource-name>Log</resource-name>

      <resource-managers>
      <resource-manager>
      <res-name>Log</res-name>
      <res-jndi-name>eis/Log</res-jndi-name>
      </resource-manager>
      </resource-managers>
      </enterprise-beans>


      ************ejb-jar.xml******************
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>FryBean</ejb-name>
      com.gft.j2ee.FryHome
      com.gft.j2ee.FryRemote
      <ejb-class>com.gft.j2ee.FryBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <resource-ref>
      <res-ref-name>Log</res-ref-name>
      <res-type>javax.resource.cci.ConnectionFactory</res-type>
      <res-auth>Application</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>

      </enterprise-beans>

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>FryBean</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>

        • 1. Re: EIS JCA connector
          davidjencks

          The weblogic config file won't work on jboss. You have to deploy the .rar unmodified first, then deploy a *-service.xml file (3.0.x) or *-ds.xml (3.2, 4) file with the specific connection factory configuration separately. There are examples in the docs/jca/example-config directory.

          I recommend trying 3.2 from cvs or waiting for the 3.2 release since the *-ds.xml files are considerably more manageable than the *-service.xml files.

          does weblogic really let you put content not specified in the connector dtd in the ra.xml file?

          • 2. Re: EIS JCA connector
            vkorenev

            But the *-ds.xml files are intended only for deployment of JDBC connection sources, aren`t they? At least I have not found any examples on how to use them with other JCA adapters.

            • 3. Re: EIS JCA connector
              vkorenev

              But the *-ds.xml files are intended only for deployment of JDBC connection sources, aren`t they? At least I have not found any examples on how to use them with other JCA adapters.

              • 4. Re: EIS JCA connector
                vkorenev

                I was wrong. I have found a lot of examples in the 3.2.0 distribution.
                Definitely the use of <connection-factories> is very convinient.