JCA1.5 with JBoss4.0.x

To make Slide's WebDAV JCA Connector run under JBoss4.0.x, the connector must support JCA1.5, you must change the ra.xml and webdav-connector-ds.xml as following:

ra.xml

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

<!-- $Id: ra.xml,v 1.1.2.1 2004/11/30 01:13:35 starksm Exp $ -->

<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">

   <description>Jakarta Slide Resource Adapter</description>
   <display-name>WebDAV-Connector</display-name>

   <vendor-name>Truman</vendor-name>
   <eis-type>WebDAV</eis-type>
   <resourceadapter-version>1.0</resourceadapter-version>

   <license>
      <description>
      </description>
      <license-required>false</license-required>
   </license>
     <resourceadapter>
      <resourceadapter-class>org.jboss.resource.deployment.DummyResourceAdapter</resourceadapter-class>
                <outbound-resourceadapter>
                        <connection-definition>
                                <managedconnectionfactory-class>
                                        org.apache.webdav.connector.WebDAVManagedConnectionFactory</managedconnectionfactory-class>
                                <connectionfactory-interface>
                                        javax.resource.cci.ConnectionFactory</connectionfactory-interface>
                                <connectionfactory-impl-class>
                                        org.apache.webdav.connector.WebDAVConnectionFactory</connectionfactory-impl-class>
                                <connection-interface>
                                        javax.resource.cci.Connection</connection-interface>
                                <connection-impl-class>
                                        org.apache.webdav.connector.WebDAVConnection</connection-impl-class>
                                
                        </connection-definition>
                        <transaction-support>XATransaction</transaction-support>
                        <authentication-mechanism>
                                <authentication-mechanism-type>
                                        basic-password</authentication-mechanism-type>
                                <credential-interface>
                                        javax.resource.spi.security.PasswordCredential</credential-interface>
                        </authentication-mechanism>
                        <reauthentication-support>false</reauthentication-support>
                </outbound-resourceadapter>

   </resourceadapter>
</connector>

webdav-connector-ds.xml

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

<connection-factories>

  <tx-connection-factory>
     <jndi-name>WebDAV-Connector</jndi-name>
     <xa-transaction/>
         <rar-name>webdav-2.1.rar</rar-name>
     <track-connection-by-tx/> 
         <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
     <adapter-display-name>WebDAV-Connector</adapter-display-name>
  </tx-connection-factory>


</connection-factories>

Note: Never include the slide connector jar files in your web lib folder

JCA1.5withJBoss4.0.x (last edited 2009-09-20 22:02:41 by localhost)