EIS JCA connector
amarquez Apr 7, 2003 12:38 PMI 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>