<?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 JavaMail Resource Adapter</description>
   <display-name>JavaMail Adapter</display-name>

   <vendor-name>JBoss, Inc</vendor-name>
   <eis-type>JavaMail Adapter</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.mail.MailResourceAdapter</resourceadapter-class>

      <inbound-resourceadapter>
         <messageadapter>        
            <messagelistener>
               <messagelistener-type>org.jboss.resource.adapter.mail.inflow.MailListener</messagelistener-type>
               <activationspec>
                  <activationspec-class>org.jboss.resource.adapter.mail.inflow.MailActivationSpec</activationspec-class>
                  <!-- The mail server address or hostname -->
                  <required-config-property>
                      <config-property-name>mailServer</config-property-name>
                  </required-config-property>
                  <!-- The name of the mail folder passed to the Store.getFolder method -->
                  <required-config-property>
                      <config-property-name>mailFolder</config-property-name>
                  </required-config-property>
                  <!-- The type of protocol used by the mail server store: pop, imap -->
                  <required-config-property>
                      <config-property-name>storeProtocol</config-property-name>
                  </required-config-property>
               </activationspec>
            </messagelistener>
         </messageadapter>
      </inbound-resourceadapter>

   </resourceadapter>
</connector>
