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

<!-- $Id: ra.xml 38347 2005-11-22 00:14:22Z adrian $ -->

<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>JBoss JMS Resource Adapter</description>
   <display-name>JMS Adapter</display-name>

   <vendor-name>JBoss, Inc</vendor-name>
   <eis-type>JMS 1.1 Server</eis-type>
   <resourceadapter-version>4.0</resourceadapter-version>

   <license>
      <description>
 JBoss, Home of Professional Open Source
 Copyright 2005, JBoss Inc., and individual contributors as indicated
 by the @authors tag. See the copyright.txt in the distribution for a
 full listing of individual contributors.

 This is free software; you can redistribute it and/or modify it
 under the terms of the GNU Lesser General Public License as
 published by the Free Software Foundation; either version 2.1 of
 the License, or (at your option) any later version.

 This software is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this software; if not, write to the Free
 Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 02110-1301 USA, or see the FSF site: http://www.fsf.org.
      </description>
      <license-required>true</license-required>
   </license>

   <resourceadapter>
      <resourceadapter-class>org.jboss.resource.adapter.jms.JmsResourceAdapter</resourceadapter-class>

      <outbound-resourceadapter>
         <connection-definition>
            <managedconnectionfactory-class>org.jboss.resource.adapter.jms.JmsManagedConnectionFactory</managedconnectionfactory-class>
            <config-property>
              <description>The jndi name of the provider of connection factories</description>
              <config-property-name>JmsProviderAdapterJNDI</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>java:DefaultJMSProvider</config-property-value>
            </config-property>
            <config-property>
               <description>The default session type</description>
               <config-property-name>SessionDefaultType</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>javax.jms.Topic</config-property-value>
            </config-property>
            <config-property>
              <description>The user name used to login to the jms server</description>
              <config-property-name>UserName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The password used to login to the jms server</description>
              <config-property-name>Password</config-property-name>
      	     <config-property-type>java.lang.String</config-property-type>
      	     <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The client id for this connection factory</description>
              <config-property-name>ClientID</config-property-name>
      	     <config-property-type>java.lang.String</config-property-type>
      	     <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <config-property-name>Strict</config-property-name>
	           <config-property-type>java.lang.Boolean</config-property-type>
	           <config-property-value>true</config-property-value>
            </config-property>
            <connectionfactory-interface>org.jboss.resource.adapter.jms.JmsConnectionFactory</connectionfactory-interface>
            <connectionfactory-impl-class>org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl</connectionfactory-impl-class>
            <connection-interface>javax.jms.Session</connection-interface>
            <connection-impl-class>org.jboss.resource.adapter.jms.JmsSession</connection-impl-class>
         </connection-definition>
         <transaction-support>XATransaction</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>

      <inbound-resourceadapter>
         <messageadapter>        
            <messagelistener>
               <messagelistener-type>javax.jms.MessageListener</messagelistener-type>
               <activationspec>
                  <activationspec-class>org.jboss.resource.adapter.jms.inflow.JmsActivationSpec</activationspec-class>
                  <required-config-property>
                      <config-property-name>destination</config-property-name>
                  </required-config-property>
                  <required-config-property>
                      <config-property-name>destinationType</config-property-name>
                  </required-config-property>
               </activationspec>
            </messagelistener>
         </messageadapter>
      </inbound-resourceadapter>

   </resourceadapter>
</connector>
