[jboss-cvs] JBossAS SVN: r68758 - in branches/JBPAPP_4_2_0_GA_CP/ejb3: src/resources/test and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 9 15:59:04 EST 2008


Author: bdecoste
Date: 2008-01-09 15:59:04 -0500 (Wed, 09 Jan 2008)
New Revision: 68758

Added:
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/META-INF/
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/META-INF/persistence.xml
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/MyEntity.java
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulBean.java
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulRemote.java
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessBean.java
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessRemote.java
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/unit/
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/unit/EPCPropagationTestCase.java
Modified:
   branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml
Log:
[JBPAPP-520] fixed persistence.xml scope at .ear level
[JBPAPP-532] test for EPC propagation

Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml	2008-01-09 20:56:12 UTC (rev 68757)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml	2008-01-09 20:59:04 UTC (rev 68758)
@@ -71,6 +71,7 @@
    <import file="../testsuite/imports/server-config.xml"/>
    <!-- Propagate the dist directory as a jbosstest system property -->
    <property name="ejb3.dist" value="${jboss.dist}"/>
+	
    <echo message="${ejb3.dist}"/>
    <property name="jbosstest.dist" value="${ejb3.dist}"/>
 
@@ -1845,7 +1846,21 @@
          <fileset dir="${resources}/test/ejbthree921"/>
       </jar>
    </target>
+	
+   <target name="epcpropagation"
+      description="Builds all jar files."
+      depends="compile-classes">
 
+      <mkdir dir="${build.lib}"/>
+
+      <jar jarfile="${build.lib}/epcpropagation-test.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/epcpropagation/*.class"/>
+         </fileset>
+         <fileset dir="${resources}/test/epcpropagation"/>
+      </jar>
+   </target>
+
    <target name="ejbthree959"
       description="Builds simple jar file."
       depends="compile-classes">
@@ -2275,7 +2290,7 @@
 
       <jar jarfile="${build.lib}/persistenceunits-test.jar">
          <fileset dir="${build.classes}">
-            <include name="org/jboss/ejb3/test/persistenceunits/*.class"/>
+            <include name="org/jboss/ejb3/test/persistenceunits/Entity*.class"/>
          </fileset>
          <fileset dir="${resources}/test/persistenceunits">
             <include name="META-INF/persistence.xml"/>
@@ -2283,6 +2298,50 @@
             <include name="*.jar"/>
          </fileset>
       </jar>
+   	
+	  <jar jarfile="${build.lib}/persistenceunitscope.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/persistenceunits/Entity*.class"/>
+         </fileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+	        <include name="entity2-ds.xml"/>
+         </fileset>
+      </jar>
+	
+	  <ear earfile="${build.lib}/persistenceunitscope-test.ear" appxml="${resources}/test/persistenceunits/application.xml">
+         <zipfileset dir="${build.lib}" prefix="lib">
+            <include name="persistenceunitscope.jar"/>
+         </zipfileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+            <include name="META-INF/persistence.xml"/>
+         </fileset>
+      </ear>
+   	
+   	  <jar jarfile="${build.lib}/persistenceunitsharedentity1.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/persistenceunits/Entity*.class"/>
+         </fileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+	        <include name="entity2-ds.xml"/>
+	        <include name="META-INF/persistence.xml"/>
+         </fileset>
+      </jar>
+	
+	  <jar jarfile="${build.lib}/persistenceunitsharedentity2.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/persistenceunits/Service*.class"/>
+         </fileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+	        <include name="META-INF/persistence.xml"/>
+         </fileset>
+      </jar>
+	
+	  <ear earfile="${build.lib}/persistenceunitsharedentity-test.ear" appxml="${resources}/test/persistenceunits/sharedEntityApplication.xml">
+         <zipfileset dir="${build.lib}" prefix="lib">
+            <include name="persistenceunitsharedentity1.jar"/>
+			<include name="persistenceunitsharedentity2.jar"/>
+         </zipfileset>
+      </ear>
    </target>
    
    <target name="mdbtransactions"
@@ -3467,7 +3526,7 @@
       circulardependency, jsp, timerdependency, servicedependency, servlet, stateless14, webservices, ear, ejbthree440, 
       ejbthree454, ejbthree653, ejbthree670, ejbthree712, ejbthree724, ejbthree751, ejbthree785, ejbthree786, ejbthree832, ejbthree921,
       ejbthree959, ejbthree963, ejbthree994, ejbthree1023, ejbthree1025, ejbthree1057, ejbthree1062,
-      jbas4489,
+      jbas4489, epcpropagation,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency, jaxws,
       pkg, securitydomain, enventry, 
       jms/managed, naming, bmt, jca/inflowmdb, pool, jms, security, reference21_30, factory, dd/web, txexceptions, 
@@ -4087,6 +4146,9 @@
    </target>
 
    <target name="no-start-jboss-entity-tests" depends="init" description="Execute all tests">
+	  <antcall target="test" inheritRefs="true">
+         <param name="test" value="epcpropagation"/>
+      </antcall>
       <antcall target="test" inheritRefs="true">
          <param name="test" value="regression/ejbthree440"/>
       </antcall>

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/META-INF/persistence.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/META-INF/persistence.xml	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/resources/test/epcpropagation/META-INF/persistence.xml	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence>
+   <persistence-unit name="mypc" transaction-type="JTA">
+      <jta-data-source>java:/DefaultDS</jta-data-source>
+      <properties>
+          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+      </properties>
+   </persistence-unit>
+</persistence>

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/MyEntity.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/MyEntity.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/MyEntity.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.epcpropagation;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Entity
+public class MyEntity implements Serializable
+{
+   private Integer id;
+   private String name;
+   
+   public MyEntity()
+   {
+      
+   }
+   
+   public MyEntity(String name)
+   {
+      this.name = name;
+   }
+
+   @Id
+   public Integer getId()
+   {
+      return id;
+   }
+
+   public void setId(Integer id)
+   {
+      this.id = id;
+   }
+
+   public String getName()
+   {
+      return name;
+   }
+
+   public void setName(String name)
+   {
+      this.name = name;
+   }   
+}

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulBean.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulBean.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulBean.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.epcpropagation;
+
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.SessionContext;
+import javax.ejb.Stateful;
+import javax.ejb.TransactionManagement;
+import javax.ejb.TransactionManagementType;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.persistence.PersistenceContextType;
+import javax.transaction.Status;
+import javax.transaction.UserTransaction;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateful
+ at TransactionManagement(TransactionManagementType.BEAN)
+ at Remote(StatefulRemote.class)
+public class StatefulBean implements StatefulRemote
+{
+   private static final Logger log = Logger.getLogger(StatefulBean.class);
+   
+   @PersistenceContext(type=PersistenceContextType.EXTENDED,unitName="mypc")
+   EntityManager em;
+
+   @Resource
+   SessionContext sessionContext;
+
+   @EJB
+   StatelessRemote cmtBean;
+   
+   public boolean execute(Integer pId, String pName)
+   {
+
+      try
+      {
+         UserTransaction tx1 = sessionContext.getUserTransaction();
+         log.info("!!!!! execute tx1 " + tx1 + " " + tx1.getStatus());
+         tx1.begin();
+         log.info("!!!!! execute begin " + tx1.getStatus());
+         em.joinTransaction();
+         MyEntity eb = em.find(MyEntity.class, pId);
+         eb.setName(pName.toUpperCase());
+         cmtBean.updateEntity(pId, pName.toLowerCase());
+         UserTransaction tx2 = sessionContext.getUserTransaction();
+         log.info("!!!!! execute tx2 " + tx2 + " " + tx2.getStatus());
+         tx1.commit();
+         
+         log.info("!!!! execute state " + tx1.getStatus() + " " + tx2.getStatus() + " " + Status.STATUS_NO_TRANSACTION);
+         return true;
+      }
+      catch (Exception e)
+      {
+         e.printStackTrace();
+         try
+         {
+            sessionContext.getUserTransaction().rollback();
+         }
+         catch (Exception e1)
+         {
+            System.out.println("ROLLBACK: "+e1);
+         }
+         return false;
+      }
+   }
+}
\ No newline at end of file

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulRemote.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulRemote.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatefulRemote.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.epcpropagation;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface StatefulRemote
+{
+   public boolean execute(Integer pId, String pName);
+}

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessBean.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessBean.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessBean.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.epcpropagation;
+
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.SessionContext;
+import javax.ejb.Stateless;
+import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+
+import org.jboss.annotation.JndiInject;
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateless
+ at Remote(StatelessRemote.class)
+public class StatelessBean implements StatelessRemote
+{
+   private static final Logger log = Logger.getLogger(StatelessBean.class);
+   
+   @PersistenceContext(unitName="mypc")
+   EntityManager em;
+   
+   @Resource
+   SessionContext sessionContext;
+   
+   @JndiInject(jndiName="java:/TransactionManager")
+   TransactionManager tm;
+   
+   @TransactionAttribute(TransactionAttributeType.REQUIRED)
+   public void createEntity(Integer pId, String pName)
+   {
+      MyEntity eb = em.find(MyEntity.class, pId);
+      if (eb == null)
+      {
+         eb = new MyEntity();
+         eb.setId(pId);
+         em.persist(eb);
+      }
+      eb.setName(pName);
+   }
+
+   @TransactionAttribute(TransactionAttributeType.REQUIRED)
+   public void updateEntity(Integer pId, String pName)
+   {
+      MyEntity eb = em.find(MyEntity.class, pId);
+      eb.setName(pName);
+      
+      try
+      {
+         Transaction tx = tm.getTransaction();
+         log.info("!! updateEntity " + tx + " " + tx.getStatus());
+      } 
+      catch (Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+}
\ No newline at end of file

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessRemote.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessRemote.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/StatelessRemote.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.epcpropagation;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface StatelessRemote
+{
+   public void createEntity(Integer pId, String pName);
+   
+   public void updateEntity(Integer pId, String pName);
+}

Added: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/unit/EPCPropagationTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/unit/EPCPropagationTestCase.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/epcpropagation/unit/EPCPropagationTestCase.java	2008-01-09 20:59:04 UTC (rev 68758)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, 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.epcpropagation.unit;
+
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.epcpropagation.StatefulRemote;
+import org.jboss.ejb3.test.epcpropagation.StatelessRemote;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class EPCPropagationTestCase extends JBossTestCase
+{
+
+   public EPCPropagationTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testPropagation() throws Exception
+   {
+      StatelessRemote stateless = (StatelessRemote) new InitialContext().lookup("StatelessBean/remote");
+      stateless.createEntity(1, "EntityName");
+      
+      StatefulRemote stateful = (StatefulRemote) new InitialContext().lookup("StatefulBean/remote");
+      stateful.execute(1, "EntityName");
+    
+   }
+   
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(EPCPropagationTestCase.class, "epcpropagation-test.jar");
+   }
+
+}




More information about the jboss-cvs-commits mailing list