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

<!--

  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
  Copyright 2000-2009 Sun Microsystems, Inc. All rights reserved. 
 
  The contents of this file are subject to the terms of either the GNU
  General Public License Version 2 only ("GPL") or the Common Development
  and Distribution License ("CDDL") (collectively, the "License").  You may
  not use this file except in compliance with the License.  You can obtain
  a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
  or mq/legal/LICENSE.txt.  See the License for the specific language
  governing permissions and limitations under the License.
  
  When distributing the software, include this License Header Notice in each
  file and include the License file at mq/legal/LICENSE.txt.  Sun designates
  this particular file as subject to the "Classpath" exception as provided by
  Sun in the GPL Version 2 section of the License file that accompanied this
  code.  If applicable, add the following below the License Header, with the
  fields enclosed by brackets [] replaced by your own identifying information:
  "Portions Copyrighted [year] [name of copyright owner]"
  
  Contributor(s):
  
  If you wish your version of this file to be governed by only the CDDL or
  only the GPL Version 2, indicate your decision by adding "[Contributor]
  elects to include this software in this distribution under the [CDDL or GPL
  Version 2] license."  If you don't indicate a single choice of license, a
  recipient has the option to distribute your version of this file under
  either the CDDL, the GPL Version 2 or  to extend the choice of license to
  its licensees as provided above.  However, if you add GPL Version 2 code
  and therefore, elected the GPL Version 2 license, then the option applies
  only if the new code is made subject to such option by the copyright holder. 

  @(#)ra.xml	1.27 10/17/07

-->

<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>Sun GlassFish(tm) Message Queue JMS Resource Adapter</description>
    <display-name>Sun GlassFish(tm) Message Queue 4.4 Java EE Resource Adapter for JMS</display-name>
    <vendor-name>Sun Microsystems, Inc.</vendor-name>
    <eis-type>Java Message Service v 1.1</eis-type>
    <resourceadapter-version>4.4</resourceadapter-version>

    <resourceadapter>
        <resourceadapter-class>
            com.sun.messaging.jms.ra.ResourceAdapter
        </resourceadapter-class>
        <config-property>
                <config-property-name>
                ConnectionURL
                </config-property-name>
                <config-property-type>
                java.lang.String
                </config-property-type>
                <config-property-value>
                mq://localhost:7676/
                </config-property-value>
        </config-property>
        <config-property>
                <config-property-name>
                UserName
                </config-property-name>
                <config-property-type>
                java.lang.String
                </config-property-type>
                <config-property-value>
                guest
                </config-property-value>
        </config-property>
        <config-property>
                <config-property-name>
                Password
                </config-property-name>
                <config-property-type>
                java.lang.String
                </config-property-type>
                <config-property-value>
                guest
                </config-property-value>
        </config-property>
        <outbound-resourceadapter>
            <connection-definition>
                <managedconnectionfactory-class>
                    com.sun.messaging.jms.ra.ManagedConnectionFactory
                </managedconnectionfactory-class>
                <config-property>
                    <config-property-name>AddressList</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>localhost</config-property-value>
                </config-property>                
                <config-property>
                    <config-property-name>UserName</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <config-property>
                    <config-property-name>Password</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <connectionfactory-interface> 
                    javax.jms.ConnectionFactory
                </connectionfactory-interface>
                <connectionfactory-impl-class>
                    com.sun.messaging.jms.ra.ConnectionFactoryAdapter
                </connectionfactory-impl-class>
                <connection-interface> 
                    javax.jms.QueueConnection
                </connection-interface>
                <connection-impl-class>
                    com.sun.messaging.jms.ra.ConnectionAdapter
                </connection-impl-class>
            </connection-definition>
            <connection-definition>
                <managedconnectionfactory-class>
                    com.sun.messaging.jms.ra.ManagedConnectionFactory
                </managedconnectionfactory-class>
                <config-property>
                    <config-property-name>AddressList</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>localhost</config-property-value>
                </config-property>                
                <config-property>
                    <config-property-name>UserName</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <config-property>
                    <config-property-name>Password</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <connectionfactory-interface> 
                    javax.jms.QueueConnectionFactory
                </connectionfactory-interface>
                <connectionfactory-impl-class>
                    com.sun.messaging.jms.ra.ConnectionFactoryAdapter
                </connectionfactory-impl-class>
                <connection-interface> 
                    javax.jms.QueueConnection
                </connection-interface>
                <connection-impl-class>
                    com.sun.messaging.jms.ra.ConnectionAdapter
                </connection-impl-class>
            </connection-definition>
            <connection-definition>
                <managedconnectionfactory-class>
                    com.sun.messaging.jms.ra.ManagedConnectionFactory
                </managedconnectionfactory-class>
                <config-property>
                    <config-property-name>AddressList</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>localhost</config-property-value>
                </config-property>
                <config-property>
                    <config-property-name>UserName</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <config-property>
                    <config-property-name>Password</config-property-name>
                    <config-property-type>java.lang.String</config-property-type>
                    <config-property-value>guest</config-property-value>
                </config-property>
                <connectionfactory-interface> 
                    javax.jms.TopicConnectionFactory
                </connectionfactory-interface>
                <connectionfactory-impl-class>
                    com.sun.messaging.jms.ra.ConnectionFactoryAdapter
                </connectionfactory-impl-class>
                <connection-interface> 
                    javax.jms.TopicConnection
                </connection-interface>
                <connection-impl-class>
                    com.sun.messaging.jms.ra.ConnectionAdapter
                </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>
                            com.sun.messaging.jms.ra.ActivationSpec
                        </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>
        <adminobject>
            <adminobject-interface>javax.jms.Queue
            </adminobject-interface>
            <adminobject-class>
            com.sun.messaging.Queue
            </adminobject-class>
            <config-property>
                <config-property-name>
                Name
                </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>
                Description
                </config-property-name>
                <config-property-type>
                java.lang.String
                </config-property-type>
                <config-property-value>
                </config-property-value>
            </config-property>
        </adminobject>
        <adminobject>
            <adminobject-interface>
            javax.jms.Topic
            </adminobject-interface>
            <adminobject-class>
            com.sun.messaging.Topic
            </adminobject-class>
            <config-property>
                <config-property-name>
                Name
                </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>
                Description
                </config-property-name>
                <config-property-type>
                java.lang.String
                </config-property-type>
                <config-property-value>
                </config-property-value>
            </config-property>
        </adminobject>
    </resourceadapter>
</connector>

