[jboss-cvs] JBossAS SVN: r68222 - in trunk/ejb3: src/resources/test and 4 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 12 21:33:31 EST 2007


Author: bdecoste
Date: 2007-12-12 21:33:31 -0500 (Wed, 12 Dec 2007)
New Revision: 68222

Added:
   trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/
   trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/
   trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/ejb-jar.xml
   trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/jboss.xml
   trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/StatefulBeanDeploymentDescriptor.java
Modified:
   trunk/ejb3/build-test.xml
   trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/unit/RemoteUnitTestCase.java
Log:
moved bank proxy factory override test to statefulproxyfactoryoverride test

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-12-13 02:31:27 UTC (rev 68221)
+++ trunk/ejb3/build-test.xml	2007-12-13 02:33:31 UTC (rev 68222)
@@ -3037,6 +3037,9 @@
             <include name="org/jboss/ejb3/test/statefulproxyfactoryoverride/*.class"/>
 	        <exclude name="org/jboss/ejb3/test/statefulproxyfactoryoverride/*Factory*.class"/>
          </fileset>
+      	 <fileset dir="${resources}/test/statefulproxyfactoryoverride">
+  	        <include name="META-INF/*.xml"/>
+  	     </fileset>
       </jar>
 	
 	  <jar jarfile="${resources}/test-configs/statefulproxyfactoryoverride/lib/statefulproxyfactoryoverride.jar">

Added: trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/ejb-jar.xml
===================================================================
--- trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/ejb-jar.xml	                        (rev 0)
+++ trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/ejb-jar.xml	2007-12-13 02:33:31 UTC (rev 68222)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
+        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://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+        version="3.0">
+   <description>jBoss test application</description>
+   <display-name>Test</display-name>
+   <enterprise-beans>
+      <session>
+         <ejb-name>StatefulBeanDeploymentDescriptor</ejb-name>
+         <remote>org.jboss.ejb3.test.statefulproxyfactoryoverride.StatefulRemote</remote>
+         <ejb-class>org.jboss.ejb3.test.statefulproxyfactoryoverride.StatefulBeanDeploymentDescriptor</ejb-class>
+         <session-type>Stateful</session-type>
+         <transaction-type>Container</transaction-type>
+      </session>
+   </enterprise-beans>
+</ejb-jar>

Added: trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/jboss.xml
===================================================================
--- trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/jboss.xml	                        (rev 0)
+++ trunk/ejb3/src/resources/test/statefulproxyfactoryoverride/META-INF/jboss.xml	2007-12-13 02:33:31 UTC (rev 68222)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<jboss
+        xmlns="http://www.jboss.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
+                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+        version="3.0">
+   <enterprise-beans>
+      <session>
+         <ejb-name>StatefulBeanDeploymentDescriptor</ejb-name>
+         <remote-binding>
+            <jndi-name>StatefulDeploymentDescriptor</jndi-name>
+            <proxy-factory>CustomFactory</proxy-factory>
+         </remote-binding>
+      </session>
+   </enterprise-beans>
+</jboss>

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/StatefulBeanDeploymentDescriptor.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/StatefulBeanDeploymentDescriptor.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/StatefulBeanDeploymentDescriptor.java	2007-12-13 02:33:31 UTC (rev 68222)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.test.statefulproxyfactoryoverride;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateful;
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.logging.Logger;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class StatefulBeanDeploymentDescriptor implements StatefulRemote
+{
+   private static final Logger log = Logger.getLogger(StatefulBeanDeploymentDescriptor.class);
+
+   public String method() throws Exception
+   {
+      return "Yay!!";
+   }
+}

Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/unit/RemoteUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/unit/RemoteUnitTestCase.java	2007-12-13 02:31:27 UTC (rev 68221)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/statefulproxyfactoryoverride/unit/RemoteUnitTestCase.java	2007-12-13 02:33:31 UTC (rev 68222)
@@ -47,6 +47,13 @@
       assertNotNull(stateful);
       stateful.method();
    }
+   
+   public void testDeploymentDescriptorRemoteBindingProxyFactory() throws Exception
+   {
+      ProxyFactoryInterface stateful = (ProxyFactoryInterface)getInitialContext().lookup("StatefulDeploymentDescriptor");
+      assertNotNull(stateful);
+      stateful.method();
+   }
 
    public static Test suite() throws Exception
    {




More information about the jboss-cvs-commits mailing list