[jboss-cvs] JBossAS SVN: r69890 - in projects/ejb3/trunk/core: src/test/java/org/jboss/ejb3/test/persistenceunits and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 18 12:02:18 EST 2008


Author: bdecoste
Date: 2008-02-18 12:02:18 -0500 (Mon, 18 Feb 2008)
New Revision: 69890

Added:
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceBean.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceRemote.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/PersistenceUnitScopeTestCase.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/SharedEntityTestCase.java
   projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application.xml
   projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application1.xml
   projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application2.xml
   projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/sharedEntityApplication.xml
Modified:
   projects/ejb3/trunk/core/build-test.xml
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/Entity1.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTest.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTestBean.java
Log:
[JBAS-5043] find correct PU

Modified: projects/ejb3/trunk/core/build-test.xml
===================================================================
--- projects/ejb3/trunk/core/build-test.xml	2008-02-18 16:23:43 UTC (rev 69889)
+++ projects/ejb3/trunk/core/build-test.xml	2008-02-18 17:02:18 UTC (rev 69890)
@@ -2548,7 +2548,7 @@
       </jar>
    </target>
 
-   <target name="persistenceunits"
+	<target name="persistenceunits"
       description="Builds all jar files."
       >
 
@@ -2556,7 +2556,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"/>
@@ -2564,6 +2564,102 @@
             <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>
+	
+	  <jar jarfile="${build.lib}/persistenceunitscope1.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/persistenceunits/Entity1.class"/>
+	        <include name="org/jboss/ejb3/test/persistenceunits/Entity2.class"/>
+         </fileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+		    <include name="entity2-ds.xml"/>
+	     </fileset>
+		 <!--fileset dir="${resources}/test/persistenceunits">
+            <include name="META-INF/persistence.xml"/>
+         </fileset-->
+      </jar>
+	
+	  <jar jarfile="${build.lib}/persistenceunitscope2.jar">
+         <fileset dir="${build.classes}">
+	        <include name="org/jboss/ejb3/test/persistenceunits/Entity1.class"/>
+		    <include name="org/jboss/ejb3/test/persistenceunits/Entity2.class"/>
+         </fileset>
+	     <!--fileset dir="${resources}/test/persistenceunits">
+            <include name="META-INF/persistence.xml"/>
+         </fileset-->
+      </jar>
+	
+	  <jar jarfile="${build.lib}/persistenceunitscope-slsb.jar">
+         <fileset dir="${build.classes}">
+	        <include name="org/jboss/ejb3/test/persistenceunits/EntityTest*.class"/>
+         </fileset>
+	     <!--fileset dir="${resources}/test/persistenceunits">
+            <include name="META-INF/persistence.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>
+   	
+   	  <ear earfile="${build.lib}/persistenceunitscope-test1.ear" appxml="${resources}/test/persistenceunits/application1.xml">
+         <zipfileset dir="${build.lib}" prefix="lib">
+            <include name="persistenceunitscope1.jar"/>
+	        <include name="persistenceunitscope-slsb.jar"/>
+         </zipfileset>
+	     <fileset dir="${resources}/test/persistenceunits">
+            <include name="META-INF/persistence.xml"/>
+         </fileset>
+      </ear>
+	
+	  <ear earfile="${build.lib}/persistenceunitscope-test2.ear" appxml="${resources}/test/persistenceunits/application2.xml">
+         <zipfileset dir="${build.lib}" prefix="lib">
+            <include name="persistenceunitscope2.jar"/>
+	        <include name="persistenceunitscope-slsb.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"

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/Entity1.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/Entity1.java	2008-02-18 16:23:43 UTC (rev 69889)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/Entity1.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -22,6 +22,8 @@
 package org.jboss.ejb3.test.persistenceunits;
 
 import javax.persistence.Entity;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
@@ -32,8 +34,13 @@
  */
 @Entity
 @Table(name = "ENTITY1")
+ at NamedQueries({
+ @NamedQuery(name = "findAll", query = "from Entity1") 
+ })
 public class Entity1 implements java.io.Serializable
 {
+   public static final String FIND_ALL = "findAll";
+   
    private Long id;
    private String data;
 

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTest.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTest.java	2008-02-18 16:23:43 UTC (rev 69889)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTest.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -31,4 +31,6 @@
    Entity1 loadEntity1(Long id);
    Long persistEntity2(Entity2 entity2);
    Entity2 loadEntity2(Long id);
+   
+   void testSharedEntity();
 }

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTestBean.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTestBean.java	2008-02-18 16:23:43 UTC (rev 69889)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/EntityTestBean.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -21,6 +21,8 @@
  */
 package org.jboss.ejb3.test.persistenceunits;
 
+import java.util.List;
+
 import org.jboss.logging.Logger;
 
 import javax.ejb.Remote;
@@ -61,4 +63,21 @@
    {
       return manager2.find(Entity2.class, id);
    }
+   
+   public void testSharedEntity()
+   {
+      Entity1 entity = new Entity1();
+      entity.setData("TestShared1");
+      manager1.persist(entity);
+      
+      entity = new Entity1();
+      entity.setData("TestShared2");
+      manager1.persist(entity);
+
+      List<Entity1> result = manager1.createNamedQuery(Entity1.FIND_ALL).getResultList();
+      for (Entity1 e : result)
+      {
+          log.info("*** testSharedEntity result=" + e.getData());
+      }
+   }
 }

Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceBean.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceBean.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceBean.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,62 @@
+/*
+ * 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.persistenceunits;
+
+import java.util.List;
+
+import javax.ejb.Remote;
+
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.ejb3.annotation.Service;
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Service
+ at Remote(ServiceRemote.class)
+public class ServiceBean implements ServiceRemote
+{
+   private static final Logger log = Logger.getLogger(ServiceBean.class);
+   
+   @PersistenceContext(unitName = "Entity1")
+   private EntityManager manager;
+   
+   public void testSharedEntity()
+   {
+      Entity1 entity = new Entity1();
+      entity.setData("TestShared3");
+      manager.persist(entity);
+      
+      entity = new Entity1();
+      entity.setData("TestShared4");
+      manager.persist(entity);
+
+      List<Entity1> result = manager.createNamedQuery(Entity1.FIND_ALL).getResultList();
+      for (Entity1 e : result)
+      {
+         log.info("*** testSharedEntity result=" + e.getData());
+      }
+   }
+}

Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceRemote.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceRemote.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/ServiceRemote.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,30 @@
+/*
+ * 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.persistenceunits;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface ServiceRemote
+{
+   void testSharedEntity();
+}

Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,80 @@
+/*
+ * 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.persistenceunits.unit;
+
+import org.jboss.ejb3.test.persistenceunits.Entity1;
+import org.jboss.ejb3.test.persistenceunits.Entity2;
+import org.jboss.ejb3.test.persistenceunits.EntityTest;
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+import junit.framework.Test;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class MultipleEarTestCase
+extends JBossTestCase
+{
+   private static final Logger log = Logger.getLogger(MultipleEarTestCase.class);
+
+   public MultipleEarTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testGoodEar() throws Exception
+   {
+      EntityTest test = (EntityTest) getInitialContext().lookup("persistenceunitscope-test1/EntityTestBean/remote");
+      
+      Entity1 entity1 = new Entity1();
+      entity1.setData("ONE");
+      Long id1 = test.persistEntity1(entity1);
+      
+      Entity2 entity2 = new Entity2();
+      entity2.setData("TWO");
+      Long id2 = test.persistEntity2(entity2);
+      
+      entity1 = test.loadEntity1(id1);
+      assertEquals("ONE", entity1.getData());
+      
+      entity2 = test.loadEntity2(id2);
+      assertEquals("TWO", entity2.getData());
+   }
+   
+   public void testBadEar() throws Exception
+   {
+      try
+      {
+         EntityTest test = (EntityTest) getInitialContext().lookup("persistenceunitscope-test2/EntityTestBean/remote");
+         fail("Should not have deployed - got PU from persistenceunitscope-test1");
+      } catch (javax.naming.NameNotFoundException e)
+      {
+      }
+   }
+
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(MultipleEarTestCase.class, "persistenceunitscope-test1.ear, persistenceunitscope-test2.ear");
+   }
+
+}

Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/PersistenceUnitScopeTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/PersistenceUnitScopeTestCase.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/PersistenceUnitScopeTestCase.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,69 @@
+/*
+ * 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.persistenceunits.unit;
+
+import org.jboss.ejb3.test.persistenceunits.Entity1;
+import org.jboss.ejb3.test.persistenceunits.Entity2;
+import org.jboss.ejb3.test.persistenceunits.EntityTest;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+import junit.framework.Test;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class PersistenceUnitScopeTestCase
+extends JBossTestCase
+{
+   private static final Logger log = Logger.getLogger(EntityUnitTestCase.class);
+
+   public PersistenceUnitScopeTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testScope() throws Exception
+   {
+      EntityTest test = (EntityTest) getInitialContext().lookup("persistenceunitscope-test/EntityTestBean/remote");
+      
+      Entity1 entity1 = new Entity1();
+      entity1.setData("ONE");
+      Long id1 = test.persistEntity1(entity1);
+      
+      Entity2 entity2 = new Entity2();
+      entity2.setData("TWO");
+      Long id2 = test.persistEntity2(entity2);
+      
+      entity1 = test.loadEntity1(id1);
+      assertEquals("ONE", entity1.getData());
+      
+      entity2 = test.loadEntity2(id2);
+      assertEquals("TWO", entity2.getData());
+   }
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(PersistenceUnitScopeTestCase.class, "persistenceunitscope-test.ear");
+   }
+
+}

Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/SharedEntityTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/SharedEntityTestCase.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/SharedEntityTestCase.java	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,58 @@
+/*
+ * 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.persistenceunits.unit;
+
+import org.jboss.ejb3.test.persistenceunits.EntityTest;
+import org.jboss.ejb3.test.persistenceunits.ServiceRemote;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+import junit.framework.Test;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class SharedEntityTestCase
+extends JBossTestCase
+{
+   private static final Logger log = Logger.getLogger(SharedEntityTestCase.class);
+
+   public SharedEntityTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testSharedEntity() throws Exception
+   {
+      EntityTest test = (EntityTest) getInitialContext().lookup("persistenceunitsharedentity-test/EntityTestBean/remote");
+      test.testSharedEntity();
+      
+      ServiceRemote service = (ServiceRemote) getInitialContext().lookup("persistenceunitsharedentity-test/ServiceBean/remote");
+      service.testSharedEntity();
+   }
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(SharedEntityTestCase.class, "persistenceunitsharedentity-test.ear");
+   }
+
+}

Added: projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application.xml
===================================================================
--- projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application.xml	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application.xml	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
+
+<application>
+  <display-name>EAR test</display-name>
+  
+  <module>
+    <ejb>lib/persistenceunitscope.jar</ejb>
+  </module>
+</application>
+
+

Added: projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application1.xml
===================================================================
--- projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application1.xml	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application1.xml	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
+
+<application>
+  <display-name>EAR test</display-name>
+  
+  <module>
+    <ejb>lib/persistenceunitscope1.jar</ejb>
+  </module>
+  
+  <module>
+    <ejb>lib/persistenceunitscope-slsb.jar</ejb>
+  </module>
+</application>
+
+

Added: projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application2.xml
===================================================================
--- projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application2.xml	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/application2.xml	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
+
+<application>
+  <display-name>EAR test</display-name>
+  
+  <module>
+    <ejb>lib/persistenceunitscope2.jar</ejb>
+  </module>
+  
+  <module>
+    <ejb>lib/persistenceunitscope-slsb.jar</ejb>
+  </module>
+</application>
+
+

Added: projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/sharedEntityApplication.xml
===================================================================
--- projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/sharedEntityApplication.xml	                        (rev 0)
+++ projects/ejb3/trunk/core/src/test/resources/test/persistenceunits/sharedEntityApplication.xml	2008-02-18 17:02:18 UTC (rev 69890)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
+
+<application>
+  <display-name>EAR test</display-name>
+  
+  <module>
+    <ejb>lib/persistenceunitsharedentity1.jar</ejb>
+  </module>
+  
+  <module>
+    <ejb>lib/persistenceunitsharedentity2.jar</ejb>
+  </module>
+</application>
+
+




More information about the jboss-cvs-commits mailing list