[jboss-cvs] JBossAS SVN: r60630 - in trunk/ejb3/src: test/org/jboss/ejb3/test/clusteredsession/unit and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Feb 18 23:13:38 EST 2007


Author: bstansberry at jboss.com
Date: 2007-02-18 23:13:38 -0500 (Sun, 18 Feb 2007)
New Revision: 60630

Added:
   trunk/ejb3/src/resources/test/clusteredsession/scoped/META-INF/jboss.xml
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ScopedExtendedPersistenceUnitTestCase.java
Log:
Add test of XPC handling with a scoped classloader

Added: trunk/ejb3/src/resources/test/clusteredsession/scoped/META-INF/jboss.xml
===================================================================
--- trunk/ejb3/src/resources/test/clusteredsession/scoped/META-INF/jboss.xml	                        (rev 0)
+++ trunk/ejb3/src/resources/test/clusteredsession/scoped/META-INF/jboss.xml	2007-02-19 04:13:38 UTC (rev 60630)
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<jboss
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+        version="3.0">
+        
+      <loader-repository>test,ejb3:loader=testClusteredSession</loader-repository>
+      
+      <enterprise-beans>
+         <session>
+            <ejb-name>OverrideStateful</ejb-name>
+            <jndi-name>OverrideStatefulRemote</jndi-name>
+            <clustered>true</clustered>
+            <cluster-config>
+               <partition-name>DefaultPartition</partition-name>
+               <load-balance-policy>org.jboss.ha.framework.interfaces.RandomRobin</load-balance-policy>
+            </cluster-config>
+         </session>
+         <session>
+            <ejb-name>NonAnnotationStateful</ejb-name>
+            <clustered>true</clustered>
+            <cluster-config>
+               <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+               <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+            </cluster-config>
+         </session>         
+         <session>
+            <ejb-name>OverrideAnnotationStateful</ejb-name>
+            <clustered>true</clustered>
+            <cluster-config>
+               <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+               <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+            </cluster-config>
+         </session>
+         <session>
+            <ejb-name>EjbJarOverrideAnnotationStateful</ejb-name>
+            <clustered>true</clustered>
+            <cluster-config>
+               <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
+               <load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</load-balance-policy>
+            </cluster-config>
+         </session>
+         <session>
+            <ejb-name>NonClusteredStateful</ejb-name>
+            <jndi-name>NonClusteredStatefulRemote</jndi-name>
+            <clustered>false</clustered>
+            <cache-config>
+               <cache-class>org.jboss.ejb3.cache.simple.SimpleStatefulCache</cache-class>
+               <cache-max-size>1000</cache-max-size>
+               <idle-timeout-seconds>100</idle-timeout-seconds>
+            </cache-config>
+         </session>
+      </enterprise-beans>
+   </jboss>
\ No newline at end of file

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ScopedExtendedPersistenceUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ScopedExtendedPersistenceUnitTestCase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ScopedExtendedPersistenceUnitTestCase.java	2007-02-19 04:13:38 UTC (rev 60630)
@@ -0,0 +1,56 @@
+/*
+  * 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.
+  */
+package org.jboss.ejb3.test.clusteredsession.unit;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.ejb3.test.clusteredentity.unit.DBSetup;
+
+/**
+ * Tests for extended persistence under clustering with a scoped classloader.
+ *
+ * @author Brian Stansberry
+ * @version $Id: ExtendedPersistenceUnitTestCase.java 60065 2007-01-27 23:05:44Z bstansberry at jboss.com $
+ */
+
+public class ScopedExtendedPersistenceUnitTestCase extends ExtendedPersistenceUnitTestCase
+{
+   public ScopedExtendedPersistenceUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite() throws Exception
+   {
+      TestSuite suite = new TestSuite();
+      Test t1 = getDeploySetup(ScopedExtendedPersistenceUnitTestCase.class,
+                               "clusteredsession-test-scoped.jar");
+
+      suite.addTest(t1);
+
+      // Create an initializer for the test suite
+      DBSetup wrapper = new DBSetup(suite);
+      return wrapper;     
+   }
+
+}




More information about the jboss-cvs-commits mailing list