[jboss-cvs] JBossAS SVN: r110996 - in projects/jboss-jca/trunk/core: src/test/java/org/jboss/jca/core/inflow and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 22 09:34:21 EDT 2011


Author: jesper.pedersen
Date: 2011-03-22 09:34:21 -0400 (Tue, 22 Mar 2011)
New Revision: 110996

Added:
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/PureInflowTestCase.java
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/PureInflowResourceAdapter.java
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivation.java
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivationSpec.java
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/package.html
   projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/package.html
   projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/
   projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/
   projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ironjacamar.xml
   projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ra.xml
Modified:
   projects/jboss-jca/trunk/core/build.xml
Log:
Test case for pure inflow

Modified: projects/jboss-jca/trunk/core/build.xml
===================================================================
--- projects/jboss-jca/trunk/core/build.xml	2011-03-22 13:17:50 UTC (rev 110995)
+++ projects/jboss-jca/trunk/core/build.xml	2011-03-22 13:34:21 UTC (rev 110996)
@@ -338,6 +338,38 @@
       <fileset dir="${build.core.dir}/test/rars/security/reauth/subject"/>
     </jar>
 
+    <!-- Pure inflow resource adapter -->
+    <jar destfile="${build.core.dir}/test/pure-inflow.jar"
+         basedir="${build.core.dir}/test"
+         index="true"
+         indexMetaInf="true"
+         update="true"
+         level="9"
+         includes="**/inflow/ra/**">
+      <manifest>
+        <attribute name="Implementation-Title" value="IronJacamar Test - Pure inflow"/>
+        <attribute name="Implementation-Version" value="${major}.${minor}.${patch}.${type}"/>
+        <attribute name="Implementation-Vendor" value="The IronJacamar project (http://www.jboss.org/ironjacamar)"/>
+        <attribute name="Implementation-Vendor-Id" value="org.jboss"/>
+      </manifest>
+    </jar>
+    <jar destfile="${build.core.dir}/test/pure-inflow.rar"
+         index="true"
+         indexMetaInf="true"
+         update="true"
+         level="9">
+      <manifest>
+        <attribute name="Implementation-Title" value="IronJacamar Test - Pure inflow RAR"/>
+        <attribute name="Implementation-Version" value="${major}.${minor}.${patch}.${type}"/>
+        <attribute name="Implementation-Vendor" value="The IronJacamar project (http://www.jboss.org/ironjacamar)"/>
+        <attribute name="Implementation-Vendor-Id" value="org.jboss"/>
+      </manifest>
+      <fileset dir="${build.core.dir}/test">
+        <include name="pure-inflow.jar"/>
+      </fileset>
+      <fileset dir="${build.core.dir}/test/rars/inflow"/>
+    </jar>
+
   </target>
 
   <!-- ================================= 

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/PureInflowTestCase.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/PureInflowTestCase.java	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/PureInflowTestCase.java	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,136 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+
+package org.jboss.jca.core.inflow;
+
+import org.jboss.jca.core.spi.rar.Endpoint;
+import org.jboss.jca.core.spi.rar.MessageListener;
+import org.jboss.jca.core.spi.rar.ResourceAdapterRepository;
+import org.jboss.jca.embedded.Embedded;
+import org.jboss.jca.embedded.EmbeddedFactory;
+
+import java.net.URL;
+import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+
+import javax.naming.InitialContext;
+import javax.resource.spi.ActivationSpec;
+
+import org.jboss.logging.Logger;
+
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * Test cases for pure inflow
+ * 
+ * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
+ */
+public class PureInflowTestCase
+{
+   // --------------------------------------------------------------------------------||
+   // Class Members ------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   private static Logger log = Logger.getLogger(PureInflowTestCase.class);
+
+   // --------------------------------------------------------------------------------||
+   // Tests --------------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Inflow
+    * @exception Throwable Thrown if case of an error
+    */
+   @Test
+   public void testInflow() throws Throwable
+   {
+      Embedded embedded = EmbeddedFactory.create(true);
+      URL pureInflowRar = PureInflowTestCase.class.getClassLoader().getResource("pure-inflow.rar");
+
+      InitialContext ic = null;
+
+      try
+      {
+         embedded.startup();
+         embedded.deploy(pureInflowRar);
+
+         ic = new InitialContext();
+
+         ResourceAdapterRepository raRepository = 
+            embedded.lookup("ResourceAdapterRepository", ResourceAdapterRepository.class);
+
+         assertNotNull(raRepository);
+
+         Set<String> ids = raRepository.getResourceAdapters(javax.jms.MessageListener.class);
+
+         assertNotNull(ids);
+         assertEquals(1, ids.size());
+
+         String piId = ids.iterator().next();
+         assertNotNull(piId);
+
+         Endpoint endpoint = raRepository.getEndpoint(piId);
+         assertNotNull(endpoint);
+
+         List<MessageListener> listeners = raRepository.getMessageListeners(piId);
+         assertNotNull(listeners);
+         assertEquals(1, listeners.size());
+
+         MessageListener listener = listeners.get(0);
+
+         ActivationSpec as = listener.getActivation().createInstance();
+         assertNotNull(as);
+         assertNotNull(as.getResourceAdapter());
+      }
+      finally
+      {
+         embedded.undeploy(pureInflowRar);
+         embedded.shutdown();
+      }
+   }
+
+   // --------------------------------------------------------------------------------||
+   // Lifecycle Methods --------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Lifecycle start, before the suite is executed
+    * @throws Throwable throwable exception 
+    */
+   @BeforeClass
+   public static void beforeClass() throws Throwable
+   {
+   }
+
+   /**
+    * Lifecycle stop, after the suite is executed
+    * @throws Throwable throwable exception 
+    */
+   @AfterClass
+   public static void afterClass() throws Throwable
+   {
+   }
+}

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/PureInflowResourceAdapter.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/PureInflowResourceAdapter.java	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/PureInflowResourceAdapter.java	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,163 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+package org.jboss.jca.core.inflow.ra;
+
+import org.jboss.jca.core.inflow.ra.inflow.PureInflowActivation;
+import org.jboss.jca.core.inflow.ra.inflow.PureInflowActivationSpec;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ActivationSpec;
+import javax.resource.spi.BootstrapContext;
+import javax.resource.spi.ResourceAdapter;
+import javax.resource.spi.ResourceAdapterInternalException;
+import javax.resource.spi.endpoint.MessageEndpointFactory;
+
+import javax.transaction.xa.XAResource;
+
+import org.jboss.logging.Logger;
+
+/**
+ * PureInflowResourceAdapter
+ *
+ * @version $Revision: $
+ */
+public class PureInflowResourceAdapter implements ResourceAdapter
+{
+   /** The logger */
+   private static Logger log = Logger.getLogger(PureInflowResourceAdapter.class);
+
+   /** The activations by activation spec */
+   private Map<PureInflowActivationSpec, PureInflowActivation> activations;
+
+   /**
+    * Default constructor
+    */
+   public PureInflowResourceAdapter()
+   {
+      this.activations = Collections.synchronizedMap(new HashMap<PureInflowActivationSpec, PureInflowActivation>());
+   }
+
+   /**
+    * This is called during the activation of a message endpoint.
+    *
+    * @param endpointFactory A message endpoint factory instance.
+    * @param spec An activation spec JavaBean instance.
+    * @throws ResourceException generic exception 
+    */
+   public void endpointActivation(MessageEndpointFactory endpointFactory,
+                                  ActivationSpec spec) throws ResourceException
+   {
+      PureInflowActivation activation = new PureInflowActivation(this, endpointFactory, (PureInflowActivationSpec)spec);
+      activations.put((PureInflowActivationSpec)spec, activation);
+      activation.start();
+
+      log.trace("endpointActivation()");
+   }
+
+   /**
+    * This is called when a message endpoint is deactivated. 
+    *
+    * @param endpointFactory A message endpoint factory instance.
+    * @param spec An activation spec JavaBean instance.
+    */
+   public void endpointDeactivation(MessageEndpointFactory endpointFactory,
+                                    ActivationSpec spec)
+   {
+      PureInflowActivation activation = (PureInflowActivation)activations.remove(spec);
+      if (activation != null)
+         activation.stop();
+
+      log.trace("endpointDeactivation()");
+   }
+
+   /**
+    * This is called when a resource adapter instance is bootstrapped.
+    *
+    * @param ctx A bootstrap context containing references 
+    * @throws ResourceAdapterInternalException indicates bootstrap failure.
+    */
+   public void start(BootstrapContext ctx)
+      throws ResourceAdapterInternalException
+   {
+      log.trace("start()");
+   }
+
+   /**
+    * This is called when a resource adapter instance is undeployed or
+    * during application server shutdown. 
+    */
+   public void stop()
+   {
+      log.trace("stop()");
+   }
+
+   /**
+    * This method is called by the application server during crash recovery.
+    *
+    * @param specs An array of ActivationSpec JavaBeans 
+    * @throws ResourceException generic exception 
+    * @return An array of XAResource objects
+    */
+   public XAResource[] getXAResources(ActivationSpec[] specs)
+      throws ResourceException
+   {
+      log.trace("getXAResources()");
+      return null;
+   }
+
+   /** 
+    * Returns a hash code value for the object.
+    * @return A hash code value for this object.
+    */
+   @Override
+   public int hashCode()
+   {
+      int result = 17;
+      return result;
+   }
+
+   /** 
+    * Indicates whether some other object is equal to this one.
+    * @param other The reference object with which to compare.
+    * @return true if this object is the same as the obj argument, false otherwise.
+    */
+   @Override
+   public boolean equals(Object other)
+   {
+      if (other == null)
+         return false;
+
+      if (other == this)
+         return true;
+
+      if (!(other instanceof PureInflowResourceAdapter))
+         return false;
+
+      PureInflowResourceAdapter obj = (PureInflowResourceAdapter)other;
+      boolean result = true; 
+      return result;
+   }
+}

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivation.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivation.java	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivation.java	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,103 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+package org.jboss.jca.core.inflow.ra.inflow;
+
+import org.jboss.jca.core.inflow.ra.PureInflowResourceAdapter;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.endpoint.MessageEndpointFactory;
+
+/**
+ * PureInflowActivation
+ */
+public class PureInflowActivation
+{
+   /** The resource adapter */
+   private PureInflowResourceAdapter ra;
+
+   /** Activation spec */
+   private PureInflowActivationSpec spec;
+
+   /** The message endpoint factory */
+   private MessageEndpointFactory endpointFactory;
+
+   /**
+    * Default constructor
+    * @exception ResourceException Thrown if an error occurs
+    */
+   public PureInflowActivation() throws ResourceException
+   {
+      this(null, null, null);
+   }
+
+   /**
+    * Constructor
+    * @param ra PureInflowResourceAdapter
+    * @param endpointFactory MessageEndpointFactory
+    * @param spec PureInflowActivationSpec
+    * @exception ResourceException Thrown if an error occurs
+    */
+   public PureInflowActivation(PureInflowResourceAdapter ra, 
+                               MessageEndpointFactory endpointFactory,
+                               PureInflowActivationSpec spec)
+      throws ResourceException
+   {
+      this.ra = ra;
+      this.endpointFactory = endpointFactory;
+      this.spec = spec;
+   }
+
+   /**
+    * Get activation spec class
+    * @return Activation spec
+    */
+   public PureInflowActivationSpec getActivationSpec()
+   {
+      return spec;
+   }
+
+   /**
+    * Get message endpoint factory
+    * @return Message endpoint factory
+    */
+   public MessageEndpointFactory getMessageEndpointFactory()
+   {
+      return endpointFactory;
+   }
+
+   /**
+    * Start the activation
+    * @throws ResourceException Thrown if an error occurs
+    */
+   public void start() throws ResourceException
+   {
+
+   }
+
+   /**
+    * Stop the activation
+    */
+   public void stop()
+   {
+
+   }
+}

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivationSpec.java
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivationSpec.java	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/PureInflowActivationSpec.java	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+package org.jboss.jca.core.inflow.ra.inflow;
+
+import javax.resource.spi.ActivationSpec;
+import javax.resource.spi.InvalidPropertyException;
+import javax.resource.spi.ResourceAdapter;
+
+import org.jboss.logging.Logger;
+
+/**
+ * PureInflowActivationSpec
+ *
+ * @version $Revision: $
+ */
+public class PureInflowActivationSpec implements ActivationSpec
+{
+   /** The logger */
+   private static Logger log = Logger.getLogger(PureInflowActivationSpec.class);
+
+   /** The resource adapter */
+   private ResourceAdapter ra;
+
+   /**
+    * Default constructor
+    */
+   public PureInflowActivationSpec()
+   {
+
+   }
+
+   /**
+    * This method may be called by a deployment tool to validate the overall
+    * activation configuration information provided by the endpoint deployer.
+    *
+    * @throws InvalidPropertyException indicates invalid onfiguration property settings.
+    */
+   public void validate() throws InvalidPropertyException
+   {
+      log.trace("validate()");
+   }
+
+   /**
+    * Get the resource adapter
+    *
+    * @return The handle
+    */
+   public ResourceAdapter getResourceAdapter()
+   {
+      log.trace("getResourceAdapter()");
+      return ra;
+   }
+
+   /**
+    * Set the resource adapter
+    *
+    * @param ra The handle
+    */
+   public void setResourceAdapter(ResourceAdapter ra)
+   {
+      log.trace("setResourceAdapter()");
+      this.ra = ra;
+   }
+}

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/package.html
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/inflow/package.html	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,3 @@
+<body>
+The inflow part of the resource adapter.
+</body>

Added: projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/package.html
===================================================================
--- projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/java/org/jboss/jca/core/inflow/ra/package.html	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,3 @@
+<body>
+A pure inflow resource adapter.
+</body>

Added: projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ironjacamar.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ironjacamar.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ironjacamar.xml	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,30 @@
+<!--
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+-->
+
+<ironjacamar xmlns="http://www.jboss.org/ironjacamar/schema"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema 
+             http://www.jboss.org/ironjacamar/schema/ironjacamar_1_0.xsd">
+
+</ironjacamar>

Added: projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ra.xml
===================================================================
--- projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ra.xml	                        (rev 0)
+++ projects/jboss-jca/trunk/core/src/test/resources/rars/inflow/META-INF/ra.xml	2011-03-22 13:34:21 UTC (rev 110996)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+-->
+
+<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>Test RA</eis-type>
+   <resourceadapter-version>0.1</resourceadapter-version>
+   <resourceadapter>
+      <resourceadapter-class>org.jboss.jca.core.inflow.ra.PureInflowResourceAdapter</resourceadapter-class>
+      <inbound-resourceadapter>
+         <messageadapter>
+            <messagelistener>
+               <messagelistener-type>javax.jms.MessageListener</messagelistener-type>
+               <activationspec>
+                  <activationspec-class>org.jboss.jca.core.inflow.ra.inflow.PureInflowActivationSpec</activationspec-class>
+               </activationspec>
+            </messagelistener>
+         </messageadapter>
+      </inbound-resourceadapter>
+   </resourceadapter>
+</connector>



More information about the jboss-cvs-commits mailing list