[jboss-cvs] JBossAS SVN: r88146 - in projects/jboss-jca/trunk/deployers: src/test/java and 8 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 4 09:13:34 EDT 2009


Author: jeff.zhang
Date: 2009-05-04 09:13:34 -0400 (Mon, 04 May 2009)
New Revision: 88146

Added:
   projects/jboss-jca/trunk/deployers/src/test/java/org/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnection.java
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnectionFactory.java
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ResourceAdapter.java
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnection.java
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnectionInterface.java
   projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/package.html
Modified:
   projects/jboss-jca/trunk/deployers/build.xml
   projects/jboss-jca/trunk/deployers/src/test/resources/ra15outbound.rar/META-INF/ra.xml
Log:
[JBJCA-93] add test files about outbound 15

Modified: projects/jboss-jca/trunk/deployers/build.xml
===================================================================
--- projects/jboss-jca/trunk/deployers/build.xml	2009-05-04 12:24:46 UTC (rev 88145)
+++ projects/jboss-jca/trunk/deployers/build.xml	2009-05-04 13:13:34 UTC (rev 88146)
@@ -68,9 +68,12 @@
        ================================= -->
   <target name="test-jars">
     <jar destfile="${build.deployers.dir}/ra15outbound.rar"
-         manifest="src/main/resources/rar-manifest.mf"
-    	 basedir="src/test/resources/ra15outbound.rar"
-         includes="**"/>
+         manifest="src/main/resources/rar-manifest.mf">
+      <fileset dir="${build.deployers.dir}/test"
+    	  includes="org/**"
+          excludes="**/*16*"/>
+      <fileset dir="src/test/resources/ra15outbound.rar"/>
+    </jar>
   </target>
 
   <!-- ================================= 

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnection.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnection.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnection.java	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,187 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.test.deployers.spec.rars;
+
+import java.io.PrintWriter;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.CommException;
+import javax.resource.spi.ConnectionEventListener;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.EISSystemException;
+import javax.resource.spi.IllegalStateException;
+import javax.resource.spi.LocalTransaction;
+import javax.resource.spi.ManagedConnection;
+import javax.resource.spi.ManagedConnectionMetaData;
+import javax.resource.spi.ResourceAdapterInternalException;
+import javax.resource.spi.SecurityException;
+import javax.security.auth.Subject;
+import javax.transaction.xa.XAResource;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Test15ManagedConnection
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class Test15ManagedConnection implements ManagedConnection
+{
+   private static Logger log = Logger.getLogger(Test15ManagedConnection.class);
+
+   /** Adds a connection event listener to the ManagedConnection 
+    *  instance.
+    *
+    *  @param  listener   a new ConnectionEventListener to be registered
+   **/
+   public void addConnectionEventListener(ConnectionEventListener listener)
+   {
+      log.debug("call addConnectionEventListener");
+
+   }
+
+   /** Used by the container to change the association of an 
+    *  application-level connection handle with a ManagedConneciton 
+    *  instance. 
+    *  @param   connection  Application-level connection handle
+    *
+    *  @throws  ResourceException     Failed to associate the connection
+    *                                 handle with this ManagedConnection
+    *                                 instance
+   **/
+   public void associateConnection(Object connection) throws ResourceException
+   {
+      log.debug("call associateConnection");
+
+   }
+
+   /** Application server calls this method to force any cleanup on the 
+    *  ManagedConnection instance.
+    *  
+    *  @throws    ResourceException     generic exception if operation fails
+    **/
+   public void cleanup() throws ResourceException
+   {
+      log.debug("call cleanup");
+
+   }
+
+   /** Destroys the physical connection to the underlying resource manager.
+   *
+   *  @throws    ResourceException     generic exception if operation failed
+   **/
+   public void destroy() throws ResourceException
+   {
+      log.debug("call destroy");
+
+   }
+
+   /** Creates a new connection handle for the underlying physical connection 
+    *  represented by the ManagedConnection instance. 
+    *  
+    *  @param        subject        security context as JAAS subject
+    *  @param        cxRequestInfo  ConnectionRequestInfo instance
+    *  @return       generic Object instance representing the connection handle. 
+    *  @throws  ResourceException     generic exception if operation fails
+    *
+    **/
+   public Object getConnection(Subject subject,
+         ConnectionRequestInfo cxRequestInfo) throws ResourceException
+   {
+      log.debug("call getConnection");
+      return null;
+   }
+
+   /** Returns an <code>javax.resource.spi.LocalTransaction</code> instance. 
+    *
+    *  @return     LocalTransaction instance
+    *
+    *  @throws     ResourceException     generic exception if operation fails
+   **/
+   public LocalTransaction getLocalTransaction() throws ResourceException
+   {
+      log.debug("call getLocalTransaction");
+      return null;
+   }
+
+   /** Gets the log writer for this ManagedConnection instance.
+   *
+   *  @return   Character ourput stream associated with this Managed-
+   *            Connection instance
+   *     
+   *  @throws     ResourceException     generic exception if operation fails
+  **/
+   public PrintWriter getLogWriter() throws ResourceException
+   {
+      log.debug("call getLogWriter");
+      return null;
+   }
+
+   /** <p>Gets the metadata information for this connection's underlying 
+    *  EIS resource manager instance. 
+    *  @return     ManagedConnectionMetaData instance
+    *
+    *  @throws     ResourceException     generic exception if operation fails
+   **/
+   public ManagedConnectionMetaData getMetaData() throws ResourceException
+   {
+      log.debug("call destroy");
+      return null;
+   }
+
+   /** Returns an <code>javax.transaction.xa.XAresource</code> instance. 
+    *
+    *  @return     XAResource instance
+    *
+    *  @throws     ResourceException     generic exception if operation fails
+   **/
+   public XAResource getXAResource() throws ResourceException
+   {
+      log.debug("call getXAResource");
+      return null;
+   }
+
+   /** Removes an already registered connection event listener from the 
+    *  ManagedConnection instance.
+    *
+    *  @param  listener   already registered connection event listener to be 
+    *                     removed
+   **/
+   public void removeConnectionEventListener(ConnectionEventListener listener)
+   {
+      log.debug("call removeConnectionEventListener");
+
+   }
+
+   /** Sets the log writer for this ManagedConnection instance.
+   *
+   *  @param      out        Character Output stream to be associated
+   *
+   *  @throws     ResourceException  generic exception if operation fails
+   **/
+   public void setLogWriter(PrintWriter out) throws ResourceException
+   {
+      log.debug("call setLogWriter");
+
+   }
+
+}


Property changes on: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnection.java
___________________________________________________________________
Name: svn:keywords
   + Id Reversion Date

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnectionFactory.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnectionFactory.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnectionFactory.java	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,133 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.test.deployers.spec.rars;
+
+import java.io.PrintWriter;
+import java.util.Set;
+
+import javax.resource.NotSupportedException;
+import javax.resource.ResourceException;
+import javax.resource.spi.ConnectionManager;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.EISSystemException;
+import javax.resource.spi.ManagedConnection;
+import javax.resource.spi.ManagedConnectionFactory;
+import javax.resource.spi.ResourceAdapterInternalException;
+import javax.resource.spi.ResourceAllocationException;
+import javax.resource.spi.SecurityException;
+import javax.security.auth.Subject;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Test15ManagedConnectionFactory
+ *
+ * @author  <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>.
+ * @version $Revision: $
+ */
+public class Test15ManagedConnectionFactory implements
+      ManagedConnectionFactory
+{
+   private static final long serialVersionUID = 1L;
+   private static Logger log = Logger.getLogger(Test15ManagedConnectionFactory.class);
+
+   /**
+    * Creates a Connection Factory instance. 
+    *
+    *  @param    cxManager    ConnectionManager to be associated with created EIS connection factory instance
+    *  @return   EIS-specific Connection Factory instance or javax.resource.cci.ConnectionFactory instance
+    *  @throws   ResourceException     Generic exception
+    */
+   public Object createConnectionFactory(ConnectionManager cxManager) throws ResourceException
+   {
+      log.debug("call createConnectionFactory");
+      return null;
+   }
+
+   /**
+    * Creates a Connection Factory instance. 
+    *
+    *  @return   EIS-specific Connection Factory instance or javax.resource.cci.ConnectionFactory instance
+    *  @throws   ResourceException     Generic exception
+    */
+   public Object createConnectionFactory() throws ResourceException
+   {
+      log.debug("call createConnectionFactory");
+      return null;
+   }
+
+   /** 
+    * Creates a new physical connection to the underlying EIS resource manager.
+    *
+    *  @param   subject        Caller's security information
+    *  @param   cxRequestInfo  Additional resource adapter specific connection request information
+    *  @throws  ResourceException     generic exception
+    *  @return  ManagedConnection instance
+    */
+   public ManagedConnection createManagedConnection(Subject subject,
+         ConnectionRequestInfo cxRequestInfo) throws ResourceException
+   {
+      log.debug("call createManagedConnection");
+      return null;
+   }
+
+   /** 
+    * Returns a matched connection from the candidate set of connections. 
+    *  @param   connectionSet   candidate connection set
+    *  @param   subject         caller's security information
+    *  @param   cxRequestInfo   additional resource adapter specific connection request information  
+    *
+    *  @throws  ResourceException     generic exception
+    *  @return  ManagedConnection     if resource adapter finds an acceptable match otherwise null
+    **/
+   public ManagedConnection matchManagedConnections(Set connectionSet,
+      Subject subject, ConnectionRequestInfo cxRequestInfo)
+      throws ResourceException
+   {
+      log.debug("call matchManagedConnections");
+      return null;
+   }
+
+   /** 
+    * Get the log writer for this ManagedConnectionFactory instance.
+    *  @return  PrintWriter
+    *  @throws  ResourceException     generic exception
+    */
+   public PrintWriter getLogWriter() throws ResourceException
+   {
+      log.debug("call getLogWriter");
+      return null;
+   }
+
+   /** 
+    * Set the log writer for this ManagedConnectionFactory instance.</p>
+    *
+    *  @param   out PrintWriter - an out stream for error logging and tracing
+    *  @throws  ResourceException     generic exception
+    */
+   public void setLogWriter(PrintWriter out) throws ResourceException
+   {
+      log.debug("call setLogWriter");
+
+   }
+
+}


Property changes on: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ManagedConnectionFactory.java
___________________________________________________________________
Name: svn:keywords
   + Id Reversion Date

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ResourceAdapter.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ResourceAdapter.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ResourceAdapter.java	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.test.deployers.spec.rars;
+
+import javax.resource.NotSupportedException;
+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;
+
+/**
+ * Test15ResourceAdapter
+ *
+ * @author  <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>.
+ * @version $Revision: $
+ */
+public class Test15ResourceAdapter implements ResourceAdapter
+{
+   private static Logger log = Logger.getLogger(Test15ResourceAdapter.class);
+   
+   /**
+    * 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
+   {
+      log.debug("call 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)
+   {
+      log.debug("call endpointDeactivation");
+
+   }
+
+   /**
+    * 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.debug("call getXAResources");
+      return null;
+   }
+
+   /**
+    * 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.debug("call start");
+
+   }
+
+   /**
+    * This is called when a resource adapter instance is undeployed or
+    * during application server shutdown. 
+    */
+   public void stop()
+   {
+      log.debug("call stop");
+
+   }
+
+}


Property changes on: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/Test15ResourceAdapter.java
___________________________________________________________________
Name: svn:keywords
   + Id Reversion Date

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnection.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnection.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnection.java	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.test.deployers.spec.rars;
+
+import org.jboss.logging.Logger;
+
+/**
+ * TestConnection
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public class TestConnection implements TestConnectionInterface
+{
+   private static Logger log = Logger.getLogger(TestConnection.class);
+
+   /** 
+    * CallMe
+   **/
+   public void callMe()
+   {
+      log.debug("call callMe");
+
+   }
+
+}


Property changes on: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnection.java
___________________________________________________________________
Name: svn:keywords
   + Id Reversion Date

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnectionInterface.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnectionInterface.java	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnectionInterface.java	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.test.deployers.spec.rars;
+
+/**
+ * TestConnectionInterface
+ * @author <a href="mailto:jeff.zhang at jboss.org">Jeff Zhang</a>
+ * @version $Revision: $
+ */
+public interface TestConnectionInterface
+{
+
+   /** 
+    * CallMe
+   **/
+   public void callMe();
+
+}


Property changes on: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/TestConnectionInterface.java
___________________________________________________________________
Name: svn:keywords
   + Id Reversion Date

Added: projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/package.html
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/package.html	                        (rev 0)
+++ projects/jboss-jca/trunk/deployers/src/test/java/org/jboss/jca/test/deployers/spec/rars/package.html	2009-05-04 13:13:34 UTC (rev 88146)
@@ -0,0 +1,3 @@
+<body>
+Test cases about deployers.
+</body>

Modified: projects/jboss-jca/trunk/deployers/src/test/resources/ra15outbound.rar/META-INF/ra.xml
===================================================================
--- projects/jboss-jca/trunk/deployers/src/test/resources/ra15outbound.rar/META-INF/ra.xml	2009-05-04 12:24:46 UTC (rev 88145)
+++ projects/jboss-jca/trunk/deployers/src/test/resources/ra15outbound.rar/META-INF/ra.xml	2009-05-04 13:13:34 UTC (rev 88146)
@@ -9,82 +9,22 @@
            version="1.5">
 
    <vendor-name>Red Hat Middleware LLC</vendor-name>
-   <eis-type>JMS 1.1 Server</eis-type>
-   <resourceadapter-version>5.0</resourceadapter-version>
+   <eis-type>Test RA</eis-type>
+   <resourceadapter-version>0.1</resourceadapter-version>
 
-   <license>
-      <description>
- JBoss, Home of Professional Open Source.
- Copyright 2009, 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.
-      </description>
-      <license-required>true</license-required>
-   </license>
-
    <resourceadapter>
-      <resourceadapter-class>org.jboss.resource.adapter.jms.JmsResourceAdapter</resourceadapter-class>
+      <resourceadapter-class>org.jboss.jca.test.deployers.spec.rars.Test15ResourceAdapter</resourceadapter-class>
 
-      <config-property>
-         <description>Log level</description>
-         <config-property-name>logLevel</config-property-name>
-         <config-property-type>java.lang.String</config-property-type>
-         <config-property-value>DEBUG</config-property-value>
-      </config-property>
-      
       <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>
-            <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>
+            <managedconnectionfactory-class>org.jboss.jca.test.deployers.spec.rars.Test15ManagedConnectionFactory</managedconnectionfactory-class>
+
+            <connectionfactory-interface>javax.resource.spi.ManagedConnection</connectionfactory-interface>
+            <connectionfactory-impl-class>org.jboss.jca.test.deployers.spec.rars.Test15ManagedConnection</connectionfactory-impl-class>
+            <connection-interface>org.jboss.jca.test.deployers.spec.rars.TestConnectionInterface</connection-interface>
+            <connection-impl-class>org.jboss.jca.test.deployers.spec.rars.TestConnection</connection-impl-class>
          </connection-definition>
-         <transaction-support>XATransaction</transaction-support>
-         <authentication-mechanism id="amid">
-            <description>authentication-mechanism</description>
-            <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
-            <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
-         </authentication-mechanism>
+         <transaction-support>LocalTransaction</transaction-support>
          <reauthentication-support>false</reauthentication-support>
       </outbound-resourceadapter>
    </resourceadapter>




More information about the jboss-cvs-commits mailing list