[jboss-cvs] JBossAS SVN: r76974 - in trunk/testsuite/src/resources/jca: depends and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 12 06:47:40 EDT 2008


Author: jesper.pedersen
Date: 2008-08-12 06:47:39 -0400 (Tue, 12 Aug 2008)
New Revision: 76974

Added:
   trunk/testsuite/src/resources/jca/depends/
   trunk/testsuite/src/resources/jca/depends/META-INF/
   trunk/testsuite/src/resources/jca/depends/META-INF/jboss-ra.xml
   trunk/testsuite/src/resources/jca/depends/META-INF/jboss-service.xml
   trunk/testsuite/src/resources/jca/depends/META-INF/ra.xml
Log:
[JBAS-4508] Add a way to define dependencies for a JCA adapter. Patch by Vicky Kak

Added: trunk/testsuite/src/resources/jca/depends/META-INF/jboss-ra.xml
===================================================================
--- trunk/testsuite/src/resources/jca/depends/META-INF/jboss-ra.xml	                        (rev 0)
+++ trunk/testsuite/src/resources/jca/depends/META-INF/jboss-ra.xml	2008-08-12 10:47:39 UTC (rev 76974)
@@ -0,0 +1,3 @@
+<jboss-ra>
+    <depends>jboss.test:test=RaDependsOnMeMBean</depends>
+</jboss-ra>

Added: trunk/testsuite/src/resources/jca/depends/META-INF/jboss-service.xml
===================================================================
--- trunk/testsuite/src/resources/jca/depends/META-INF/jboss-service.xml	                        (rev 0)
+++ trunk/testsuite/src/resources/jca/depends/META-INF/jboss-service.xml	2008-08-12 10:47:39 UTC (rev 76974)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+  <mbean code="org.jboss.test.jca.mbean.RaDependsOnMe"
+         name="jboss.test:test=RaDependsOnMeMBean"/>
+</server>

Added: trunk/testsuite/src/resources/jca/depends/META-INF/ra.xml
===================================================================
--- trunk/testsuite/src/resources/jca/depends/META-INF/ra.xml	                        (rev 0)
+++ trunk/testsuite/src/resources/jca/depends/META-INF/ra.xml	2008-08-12 10:47:39 UTC (rev 76974)
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<connector version="1.5"
+           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"
+>
+
+   <vendor-name>JBoss, Inc</vendor-name>
+   <eis-type>JCA Properties</eis-type>
+   <resourceadapter-version>4.0</resourceadapter-version>
+   
+   <license>
+      <description>
+      COPYRIGHT AND PERMISSION NOTICE
+      Copyright (c) 2005 JBoss, Inc
+      This is released under the terms of the LGPL.
+      See gnu.org for details.
+      </description>
+      <license-required>true</license-required>
+   </license>
+   
+   <resourceadapter>
+      <resourceadapter-class>org.jboss.test.jcaprops.support.PropertyTestResourceAdapter</resourceadapter-class>
+      <config-property>
+         <config-property-name>StringRAR</config-property-name>
+         <config-property-type>java.lang.String</config-property-type>
+         <config-property-value>StringFromRARProperties</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>BooleanRAR</config-property-name>
+         <config-property-type>java.lang.Boolean</config-property-type>
+         <config-property-value>True</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>ByteRAR</config-property-name>
+         <config-property-type>java.lang.Byte</config-property-type>
+         <config-property-value>1</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>CharacterRAR</config-property-name>
+         <config-property-type>java.lang.Character</config-property-type>
+         <config-property-value>A</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>ShortRAR</config-property-name>
+         <config-property-type>java.lang.Short</config-property-type>
+         <config-property-value>2</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>IntegerRAR</config-property-name>
+         <config-property-type>java.lang.Integer</config-property-type>
+         <config-property-value>3</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>LongRAR</config-property-name>
+         <config-property-type>java.lang.Long</config-property-type>
+         <config-property-value>4</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>FloatRAR</config-property-name>
+         <config-property-type>java.lang.Float</config-property-type>
+         <config-property-value>5e6</config-property-value>
+      </config-property>
+      <config-property>
+         <config-property-name>DoubleRAR</config-property-name>
+         <config-property-type>java.lang.Double</config-property-type>
+         <config-property-value>7e8</config-property-value>
+      </config-property>
+
+      <outbound-resourceadapter>
+         <connection-definition>
+            <managedconnectionfactory-class>org.jboss.test.jcaprops.support.PropertyTestManagedConnectionFactory</managedconnectionfactory-class>
+            <config-property>
+               <config-property-name>StringMCF</config-property-name>
+               <config-property-type>java.lang.String</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>BooleanMCF</config-property-name>
+               <config-property-type>java.lang.Boolean</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>ByteMCF</config-property-name>
+               <config-property-type>java.lang.Byte</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>CharacterMCF</config-property-name>
+               <config-property-type>java.lang.Character</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>ShortMCF</config-property-name>
+               <config-property-type>java.lang.Short</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>IntegerMCF</config-property-name>
+               <config-property-type>java.lang.Integer</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>LongMCF</config-property-name>
+               <config-property-type>java.lang.Long</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>FloatMCF</config-property-name>
+               <config-property-type>java.lang.Float</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>DoubleMCF</config-property-name>
+               <config-property-type>java.lang.Double</config-property-type>
+            </config-property>
+            <config-property>
+               <config-property-name>StringCD</config-property-name>
+               <config-property-type>java.lang.String</config-property-type>
+               <config-property-value>StringFromCDProperties</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>BooleanCD</config-property-name>
+               <config-property-type>java.lang.Boolean</config-property-type>
+               <config-property-value>true</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>ByteCD</config-property-name>
+               <config-property-type>java.lang.Byte</config-property-type>
+               <config-property-value>31</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>CharacterCD</config-property-name>
+               <config-property-type>java.lang.Character</config-property-type>
+               <config-property-value>D</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>ShortCD</config-property-name>
+               <config-property-type>java.lang.Short</config-property-type>
+               <config-property-value>32</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>IntegerCD</config-property-name>
+               <config-property-type>java.lang.Integer</config-property-type>
+               <config-property-value>33</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>LongCD</config-property-name>
+               <config-property-type>java.lang.Long</config-property-type>
+               <config-property-value>34</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>FloatCD</config-property-name>
+               <config-property-type>java.lang.Float</config-property-type>
+               <config-property-value>6e26</config-property-value>
+            </config-property>
+            <config-property>
+               <config-property-name>DoubleCD</config-property-name>
+               <config-property-type>java.lang.Double</config-property-type>
+               <config-property-value>8e28</config-property-value>
+            </config-property>
+            <connectionfactory-interface>org.jboss.test.jcaprops.support.PropertyTestConnectionFactory</connectionfactory-interface>
+            <connectionfactory-impl-class>org.jboss.test.jcaprops.support.PropertyTestManagedConnectionFactoryImpl</connectionfactory-impl-class>
+            <connection-interface>org.jboss.test.jcaprops.support.PropertyTestConnection</connection-interface>
+            <connection-impl-class>org.jboss.test.jcaprops.support.PropertyTestConnectionImpl</connection-impl-class>
+         </connection-definition>
+         <transaction-support>LocalTransaction</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>org.jboss.test.jcaprops.support.PropertyTestListener</messagelistener-type>
+               <activationspec>
+                  <activationspec-class>org.jboss.test.jcaprops.support.PropertyTestActivationSpec</activationspec-class>
+                  <required-config-property>
+                      <config-property-name>StringAS</config-property-name>
+                  </required-config-property>
+                  <required-config-property>
+                      <config-property-name>integerAS</config-property-name>
+                  </required-config-property>
+               </activationspec>
+            </messagelistener>
+         </messageadapter>
+      </inbound-resourceadapter>
+
+      <adminobject>
+         <adminobject-interface>org.jboss.test.jcaprops.support.PropertyTestAdminObject</adminobject-interface>
+         <adminobject-class>org.jboss.test.jcaprops.support.PropertyTestAdminObjectImpl</adminobject-class>
+         <config-property>
+            <config-property-name>StringAOMBean</config-property-name>
+            <config-property-type>java.lang.String</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>BooleanAOMBean</config-property-name>
+            <config-property-type>java.lang.Boolean</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>ByteAOMBean</config-property-name>
+            <config-property-type>java.lang.Byte</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>CharacterAOMBean</config-property-name>
+            <config-property-type>java.lang.Character</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>ShortAOMBean</config-property-name>
+            <config-property-type>java.lang.Short</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>IntegerAOMBean</config-property-name>
+            <config-property-type>java.lang.Integer</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>LongAOMBean</config-property-name>
+            <config-property-type>java.lang.Long</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>FloatAOMBean</config-property-name>
+            <config-property-type>java.lang.Float</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>DoubleAOMBean</config-property-name>
+            <config-property-type>java.lang.Double</config-property-type>
+         </config-property>
+         <config-property>
+            <config-property-name>StringAO</config-property-name>
+            <config-property-type>java.lang.String</config-property-type>
+            <config-property-value>StringFromAOProperties</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>BooleanAO</config-property-name>
+            <config-property-type>java.lang.Boolean</config-property-type>
+            <config-property-value>true</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>ByteAO</config-property-name>
+            <config-property-type>java.lang.Byte</config-property-type>
+            <config-property-value>31</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>CharacterAO</config-property-name>
+            <config-property-type>java.lang.Character</config-property-type>
+            <config-property-value>D</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>ShortAO</config-property-name>
+            <config-property-type>java.lang.Short</config-property-type>
+            <config-property-value>32</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>IntegerAO</config-property-name>
+            <config-property-type>java.lang.Integer</config-property-type>
+            <config-property-value>33</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>LongAO</config-property-name>
+            <config-property-type>java.lang.Long</config-property-type>
+            <config-property-value>34</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>FloatAO</config-property-name>
+            <config-property-type>java.lang.Float</config-property-type>
+            <config-property-value>6e26</config-property-value>
+         </config-property>
+         <config-property>
+            <config-property-name>DoubleAO</config-property-name>
+            <config-property-type>java.lang.Double</config-property-type>
+            <config-property-value>8e28</config-property-value>
+         </config-property>
+      </adminobject>
+   </resourceadapter>
+</connector>




More information about the jboss-cvs-commits mailing list