<?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">
 
   <vendor-name>Red Hat Middleware LLC</vendor-name>
   <eis-type>Cassandra Connector</eis-type>
   <resourceadapter-version>1.0</resourceadapter-version>
   <license>
      <description>JBoss, Home of Professional Open Source.</description>
      <license-required>true</license-required>
   </license>
 
   <resourceadapter>
      <resourceadapter-class>org.teiid.resource.adapter.cassandra.CassandraResourceAdapter</resourceadapter-class>
      <outbound-resourceadapter>
         <connection-definition>
            <managedconnectionfactory-class>org.teiid.resource.adapter.cassandra.CassandraManagedConnectionFactory</managedconnectionfactory-class>
 
            <!-- repeat for every configuration property -->
            <config-property>
               <description>
                  {$display:"Address",$description:"Address of a cluster",$required:"true"}
               </description>
               <config-property-name>Address</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
            </config-property>
            <config-property>
               <description>
                  {$display:"Keyspace",$description:"Keyspace within the cluster",$required:"true"}
               </description>
               <config-property-name>Keyspace</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
            </config-property>
            <config-property>
               <description>{$display:"User Name", $description:"Cassandra User Name", $required:"false"}</description>
               <config-property-name>Username</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
            </config-property>
            
            <config-property>
               <description>{$display:"Password",$description:"Cassandra User Password",$required:"false",$masked:"true"}</description> 
               <config-property-name>Password</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
            </config-property>

            <config-property>
                <description>{$display:"Port", $description:"Port Number" $required:"false"}</description>
                <config-property-name>Port</config-property-name>
                <config-property-type>java.lang.Integer</config-property-type>
            </config-property>
 
            <!-- use the below as is if you used the Connection Factory interface -->
            <connectionfactory-interface>
               javax.resource.cci.ConnectionFactory
            </connectionfactory-interface>
 
            <connectionfactory-impl-class>
               org.teiid.resource.spi.WrappedConnectionFactory
            </connectionfactory-impl-class>
 
            <connection-interface>
               javax.resource.cci.Connection
            </connection-interface>
 
            <connection-impl-class>
               org.teiid.resource.spi.WrappedConnection
            </connection-impl-class>
 
         </connection-definition>
 
         <transaction-support>NoTransaction</transaction-support>
 
         <authentication-mechanism>
            <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
            <credential-interface>
               javax.resource.spi.security.PasswordCredential
            </credential-interface>
         </authentication-mechanism>
         <reauthentication-support>false</reauthentication-support>
 
      </outbound-resourceadapter>
 
   </resourceadapter>
 
</connector>