[jboss-cvs] JBossAS SVN: r57970 - in branches/JBoss_3_2_7_CP/testsuite/src: main/org/jboss/test main/org/jboss/test/testbyvalue main/org/jboss/test/testbyvalue/bean main/org/jboss/test/testbyvalue/interfaces main/org/jboss/test/testbyvalue/test resources resources/testbyvalue resources/testbyvalue/META-INF

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 1 14:38:51 EST 2006


Author: jaroslaw.kijanowski
Date: 2006-11-01 14:38:50 -0500 (Wed, 01 Nov 2006)
New Revision: 57970

Added:
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByReferenceStatelessSessionBean.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueEntityBean.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStatelessSessionBean.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStefulSessionBean.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ClassWithProperty.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/RootStatelessSessionBean.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSession.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSessionHome.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntity.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntityHome.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSession.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSessionHome.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSession.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSessionHome.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSession.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSessionHome.java
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/test/
   branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/test/ByValueUnitTestCase.java
   branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/
   branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/
   branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/ejb-jar.xml
   branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jboss.xml
   branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jbosscmp-jdbc.xml
Log:
repairing matrix compatibility tests part 2 - JBQA-535

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByReferenceStatelessSessionBean.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByReferenceStatelessSessionBean.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByReferenceStatelessSessionBean.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,65 @@
+/*
+* 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.test.testbyvalue.bean;
+
+import java.rmi.*;
+import javax.ejb.*;
+import javax.naming.InitialContext;
+import javax.naming.Context;
+
+/**
+ * $Id: ByReferenceStatelessSessionBean.java 40542 2006-01-24 21:14:57Z csuconic $
+ * @author Clebert Suconic
+ */
+public class ByReferenceStatelessSessionBean implements SessionBean
+{
+   org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(getClass());
+   private SessionContext sessionContext;
+
+   public void ejbCreate() throws RemoteException, CreateException
+   {
+   }
+
+   public void ejbActivate() throws RemoteException
+   {
+   }
+
+   public void ejbPassivate() throws RemoteException
+   {
+   }
+
+   public void ejbRemove() throws RemoteException
+   {
+   }
+
+   public void setSessionContext(SessionContext context) throws RemoteException
+   {
+      sessionContext = context;
+      //Exception e = new Exception("in set Session context");
+      //log.debug("failed", e);
+   }
+
+    public void doTestByReference(ClassWithProperty propertyClass) throws RemoteException
+    {
+        propertyClass.setX(propertyClass.getX() + 1000);
+    }
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueEntityBean.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueEntityBean.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueEntityBean.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,107 @@
+/*
+* 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.test.testbyvalue.bean;
+
+
+import java.rmi.*;
+import javax.ejb.*;
+import javax.naming.Context;
+import javax.sql.DataSource;
+import javax.naming.InitialContext;
+import java.sql.Connection;
+import org.jboss.test.testbean.interfaces.StatelessSession;
+import org.jboss.test.testbean.interfaces.StatelessSessionHome;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Vector;
+import java.util.Enumeration;
+
+public class ByValueEntityBean implements EntityBean {
+  private EntityContext entityContext;
+  public String name;
+
+  public String ejbCreate() throws RemoteException, CreateException {
+
+       name="nothing";
+       return name;
+  
+	  
+  }
+  public String ejbCreate(String name) throws RemoteException, CreateException {
+      this.name=name;
+      return name;
+  }
+
+
+  public String ejbFindByPrimaryKey(String name) throws RemoteException, FinderException {
+      return name;
+  }
+
+
+  public void ejbPostCreate() throws RemoteException, CreateException {
+  }
+  
+  public void ejbPostCreate(String name) throws RemoteException, CreateException {
+  }
+  
+
+  public void ejbActivate() throws RemoteException {
+  }
+
+  public void ejbLoad() throws RemoteException {
+  }
+
+  public void ejbPassivate() throws RemoteException {
+  }
+
+  public void ejbRemove() throws RemoteException, RemoveException {
+  }
+
+  public void ejbStore() throws RemoteException {
+  }
+
+
+  public void setEntityContext(EntityContext context) throws RemoteException {
+     entityContext = context;
+    }
+
+   public void unsetEntityContext() throws EJBException, RemoteException
+   {
+       this.entityContext=null;
+   }
+
+   public String getName()
+   {
+       return name;
+   }
+
+   public void setName(String name)
+   {
+       this.name=name;
+   }
+
+   public void doByValueTest(ClassWithProperty property)
+   {
+       property.setX(property.getX()+1000);
+   }
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStatelessSessionBean.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStatelessSessionBean.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStatelessSessionBean.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,65 @@
+/*
+* 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.test.testbyvalue.bean;
+
+import java.rmi.*;
+import javax.ejb.*;
+import javax.naming.InitialContext;
+import javax.naming.Context;
+
+/**
+ * $Id: ByValueStatelessSessionBean.java 40542 2006-01-24 21:14:57Z csuconic $
+ * @author Clebert Suconic
+ */
+public class ByValueStatelessSessionBean implements SessionBean
+{
+   org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(getClass());
+   private SessionContext sessionContext;
+
+   public void ejbCreate() throws RemoteException, CreateException
+   {
+   }
+
+   public void ejbActivate() throws RemoteException
+   {
+   }
+
+   public void ejbPassivate() throws RemoteException
+   {
+   }
+
+   public void ejbRemove() throws RemoteException
+   {
+   }
+
+   public void setSessionContext(SessionContext context) throws RemoteException
+   {
+      sessionContext = context;
+      //Exception e = new Exception("in set Session context");
+      //log.debug("failed", e);
+   }
+
+    public void doTestByValue(ClassWithProperty propertyClass) throws RemoteException
+    {
+        propertyClass.setX(propertyClass.getX() + 1000);
+    }
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStefulSessionBean.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStefulSessionBean.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ByValueStefulSessionBean.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,66 @@
+/*
+* 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.test.testbyvalue.bean;
+
+import java.rmi.*;
+import javax.ejb.*;
+import javax.naming.InitialContext;
+import javax.naming.Context;
+
+/**
+ * $Id: ByValueStefulSessionBean.java 40542 2006-01-24 21:14:57Z csuconic $
+ * @author Clebert Suconic
+ */
+public class ByValueStefulSessionBean implements SessionBean
+{
+   static org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(ByValueStefulSessionBean.class);
+   private SessionContext sessionContext;
+
+   public void ejbCreate() throws RemoteException, CreateException
+   {
+   }
+
+   public void ejbActivate() throws RemoteException
+   {
+   }
+
+   public void ejbPassivate() throws RemoteException
+   {
+   }
+
+   public void ejbRemove() throws RemoteException
+   {
+   }
+
+   public void setSessionContext(SessionContext context) throws RemoteException
+   {
+      sessionContext = context;
+      //Exception e = new Exception("in set Session context");
+      //log.debug("failed", e);
+   }
+
+    public void doTestByValue(ClassWithProperty propertyClass) throws RemoteException
+    {
+        System.out.println("stateful Session Bean Call");
+        propertyClass.setX(propertyClass.getX() + 1000);
+    }
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ClassWithProperty.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ClassWithProperty.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/ClassWithProperty.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,41 @@
+/*
+* 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.test.testbyvalue.bean;
+
+/**
+ * We change a property in a passByValue operation and verify if the value was changed or not
+ * @author clebert.suconic at jboss.com
+ */
+public class ClassWithProperty implements java.io.Serializable
+{
+    int x;
+
+    public int getX()
+    {
+        return x;
+    }
+
+    public void setX(int x)
+    {
+        this.x = x;
+    }
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/RootStatelessSessionBean.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/RootStatelessSessionBean.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/bean/RootStatelessSessionBean.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,193 @@
+/*
+* 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.test.testbyvalue.bean;
+
+import org.jboss.test.testbyvalue.interfaces.ByValueStatelessSessionHome;
+import org.jboss.test.testbyvalue.interfaces.ByValueStatelessSession;
+import org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSessionHome;
+import org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSession;
+import org.jboss.test.testbyvalue.interfaces.ByValueEntityHome;
+import org.jboss.test.testbyvalue.interfaces.ByValueEntity;
+
+import java.rmi.*;
+import javax.ejb.*;
+import javax.naming.InitialContext;
+import javax.naming.Context;
+import javax.rmi.PortableRemoteObject;
+
+/**
+ * $Id: RootStatelessSessionBean.java 40542 2006-01-24 21:14:57Z csuconic $
+ * @author Clebert Suconic
+ */
+public class RootStatelessSessionBean implements SessionBean
+{
+   org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(getClass());
+   private SessionContext sessionContext;
+
+   public void ejbCreate() throws RemoteException, CreateException
+   {
+   }
+
+   public void ejbActivate() throws RemoteException
+   {
+   }
+
+   public void ejbPassivate() throws RemoteException
+   {
+   }
+
+   public void ejbRemove() throws RemoteException
+   {
+   }
+
+   public void setSessionContext(SessionContext context) throws RemoteException
+   {
+      sessionContext = context;
+
+      //Exception e = new Exception("in set Session context");
+      //log.debug("failed", e);
+   }
+
+    public long doTestByValue(int iterations) throws Exception
+    {
+
+        Context ctx = new InitialContext();
+        Object objhome =
+                ctx.lookup("java:comp/env/ejb/CalledByValue");
+
+        ByValueStatelessSessionHome home = (ByValueStatelessSessionHome) PortableRemoteObject.narrow(objhome, ByValueStatelessSessionHome.class);
+        ByValueStatelessSession session = home.create();
+
+        ClassWithProperty property = new ClassWithProperty();
+
+        property.setX(1000);
+
+        long initTime = System.currentTimeMillis();
+
+
+        for (int i=0;i<iterations;i++)
+        {
+            session.doTestByValue(property);
+
+            if (property.getX()!=1000)
+            {
+                throw new RuntimeException("Property was changed in a call-by-value operation");
+            }
+        }
+
+        return System.currentTimeMillis() - initTime;
+    }
+
+    public long doTestByReference(int iterations) throws Exception
+    {
+        Context ctx = new InitialContext();
+        Object objhome =
+                ctx.lookup("java:comp/env/ejb/CalledByReference");
+
+        ByReferenceStatelessSessionHome home = (ByReferenceStatelessSessionHome) PortableRemoteObject.narrow(objhome, ByReferenceStatelessSessionHome.class);
+        ByReferenceStatelessSession session = home.create();
+
+        ClassWithProperty property = new ClassWithProperty();
+
+        property.setX(1000);
+
+        long initTime = System.currentTimeMillis();
+
+
+        for (int i=0;i<iterations;i++)
+        {
+            session.doTestByReference(property);
+
+            if (property.getX()==1000)
+            {
+                throw new RuntimeException("Property was not changed in a call-by-reference operation");
+            }
+
+            property.setX(1000);
+        }
+
+        return System.currentTimeMillis() - initTime;
+    }
+
+    public long doTestEntity(int iterations) throws Exception
+    {
+        Context ctx = new InitialContext();
+        Object objhome =
+                ctx.lookup("java:comp/env/ejb/TestByValueEntity");
+
+        ByValueEntityHome home = (ByValueEntityHome) PortableRemoteObject.narrow(objhome, ByValueEntityHome.class);
+        ByValueEntity entity = home.create();
+
+        ClassWithProperty property = new ClassWithProperty();
+
+        property.setX(1000);
+
+        long initTime = System.currentTimeMillis();
+
+
+        for (int i=0;i<iterations;i++)
+        {
+            entity.doByValueTest(property);
+
+            if (property.getX()!=1000)
+            {
+                throw new RuntimeException("Property was changed in a call-by-value operation");
+            }
+
+            property.setX(1000);
+        }
+
+        return System.currentTimeMillis() - initTime;
+    }
+
+    public long doTestEntityByReference(int iterations) throws Exception
+    {
+        Context ctx = new InitialContext();
+        Object objhome =
+                ctx.lookup("java:comp/env/ejb/TestByReferenceEntity");
+
+        ByValueEntityHome home = (ByValueEntityHome) PortableRemoteObject.narrow(objhome, ByValueEntityHome.class);
+        ByValueEntity entity = home.create();
+
+        ClassWithProperty property = new ClassWithProperty();
+
+        property.setX(1000);
+
+        long initTime = System.currentTimeMillis();
+
+
+        for (int i=0;i<iterations;i++)
+        {
+            entity.doByValueTest(property);
+
+            if (property.getX()==1000)
+            {
+                throw new RuntimeException("Property was not changed in a call-by-reference operation");
+            }
+
+            property.setX(1000);
+        }
+
+        return System.currentTimeMillis() - initTime;
+    }
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSession.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSession.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSession.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,34 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import org.jboss.test.testbyvalue.bean.ClassWithProperty;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByReferenceStatelessSession extends EJBObject {
+    public void doTestByReference(ClassWithProperty propertyClass) throws RemoteException;
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSessionHome.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSessionHome.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByReferenceStatelessSessionHome.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,33 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByReferenceStatelessSessionHome extends EJBHome {
+
+  public ByReferenceStatelessSession create() throws RemoteException, javax.ejb.CreateException;
+} 

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntity.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntity.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntity.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,38 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import org.jboss.test.testbyvalue.bean.ClassWithProperty;
+
+import javax.ejb.EJBObject;
+import java.rmi.RemoteException;
+
+/** @author Clebert Suconic*/
+public interface ByValueEntity extends EJBObject {
+
+    public String getName()  throws RemoteException;
+    public void setName(String value)  throws RemoteException;
+
+
+    public void doByValueTest(ClassWithProperty property) throws RemoteException;
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntityHome.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntityHome.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueEntityHome.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,45 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import org.jboss.test.testbean.interfaces.*;
+import org.jboss.test.testbean.interfaces.EntityBMP;
+
+import javax.ejb.EJBHome;
+import java.rmi.RemoteException;
+import javax.ejb.CreateException;
+import javax.ejb.FinderException;
+import java.util.Collection;
+import java.util.Enumeration;
+
+public interface ByValueEntityHome extends EJBHome {
+    
+    public ByValueEntity create()
+        throws RemoteException, CreateException;
+
+    public ByValueEntity create(String name)
+        throws RemoteException, CreateException;
+
+    public ByValueEntity findByPrimaryKey(String name)
+        throws RemoteException, FinderException;
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSession.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSession.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSession.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,34 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import org.jboss.test.testbyvalue.bean.ClassWithProperty;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByValueStatefulSession extends EJBObject {
+   public void doTestByValue(ClassWithProperty propertyClass) throws RemoteException;
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSessionHome.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSessionHome.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatefulSessionHome.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,32 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByValueStatefulSessionHome extends EJBHome {
+  public ByValueStatefulSession create() throws RemoteException, CreateException;
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSession.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSession.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSession.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,34 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import org.jboss.test.testbyvalue.bean.ClassWithProperty;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByValueStatelessSession extends EJBObject {
+    public void doTestByValue(ClassWithProperty propertyClass) throws RemoteException;
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSessionHome.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSessionHome.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/ByValueStatelessSessionHome.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,33 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface ByValueStatelessSessionHome extends EJBHome {
+
+  public ByValueStatelessSession create() throws RemoteException, javax.ejb.CreateException;
+} 

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSession.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSession.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSession.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,36 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface RootStatelessSession extends EJBObject {
+    public long doTestByValue(int iterations) throws RemoteException, Exception;
+    public long doTestByReference(int iterations) throws RemoteException, Exception;
+    public long doTestEntity(int iterations) throws RemoteException, Exception;
+    public long doTestEntityByReference(int iterations) throws RemoteException, Exception;
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSessionHome.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSessionHome.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/interfaces/RootStatelessSessionHome.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,33 @@
+/*
+* 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.test.testbyvalue.interfaces;
+
+import javax.ejb.*;
+import java.rmi.*;
+
+/**
+ * @author Clebert Suconic
+ */
+public interface RootStatelessSessionHome extends EJBHome {
+
+  public RootStatelessSession create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+} 

Added: branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/test/ByValueUnitTestCase.java
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/test/ByValueUnitTestCase.java	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/main/org/jboss/test/testbyvalue/test/ByValueUnitTestCase.java	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,107 @@
+/*
+* 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.test.testbyvalue.test;
+
+import java.util.Date;
+import java.math.BigDecimal;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.rmi.PortableRemoteObject;
+
+import junit.framework.Test;
+
+import org.jboss.test.JBossTestCase;
+import org.jboss.test.testbyvalue.interfaces.RootStatelessSessionHome;
+
+/**
+* @author Clebert Suconic
+*/
+public class ByValueUnitTestCase
+extends JBossTestCase
+{
+   static boolean deployed = false;
+   static int test = 0;
+   static Date startDate = new Date();
+
+   protected final String namingFactory =
+   System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
+
+   protected final String providerURL =
+   System.getProperty(Context.PROVIDER_URL);
+    private static final int ITERATIONS = 1000;
+
+    public ByValueUnitTestCase(String name) {
+      super(name);
+   }
+
+    public void testByValue() throws Exception
+    {
+        InitialContext ctx = new InitialContext();
+        Object obj = ctx.lookup("RootTestByValue");
+
+        RootStatelessSessionHome home = (RootStatelessSessionHome) PortableRemoteObject.narrow(obj, RootStatelessSessionHome.class);
+        long time = home.create().doTestByValue(ITERATIONS);
+        // I really wanted System.out as I wanted this to be sent to the XML output for ant junit tests
+        System.out.println("Time spent into CallByValues over "+ITERATIONS+" iterations=" + time);
+    }
+
+    public void testByValueOnEntity() throws Exception
+    {
+        InitialContext ctx = new InitialContext();
+        Object obj = ctx.lookup("RootTestByValue");
+
+        RootStatelessSessionHome home = (RootStatelessSessionHome) PortableRemoteObject.narrow(obj, RootStatelessSessionHome.class);
+        long time = home.create().doTestEntity(ITERATIONS);
+        // I really wanted System.out as I wanted this to be sent to the XML output for ant junit tests
+        System.out.println("Time spent into CallByValues over "+ITERATIONS+" iterations=" + time);
+    }
+
+    public void testByReferenceOnEntity() throws Exception
+    {
+        InitialContext ctx = new InitialContext();
+        Object obj = ctx.lookup("RootTestByValue");
+
+        RootStatelessSessionHome home = (RootStatelessSessionHome) PortableRemoteObject.narrow(obj, RootStatelessSessionHome.class);
+        long time = home.create().doTestEntityByReference(ITERATIONS);
+        // I really wanted System.out as I wanted this to be sent to the XML output for ant junit tests
+        System.out.println("Time spent into CallByValues over "+ITERATIONS+" iterations=" + time);
+    }
+
+    public void testByReference() throws Exception
+    {
+        InitialContext ctx = new InitialContext();
+        Object obj = ctx.lookup("RootTestByValue");
+
+        RootStatelessSessionHome home = (RootStatelessSessionHome) PortableRemoteObject.narrow(obj, RootStatelessSessionHome.class);
+        long time = home.create().doTestByReference(ITERATIONS);
+        // I really wanted System.out as I wanted this to be sent to the XML output for ant junit tests
+        System.out.println("Time spent into CallByReferences over "+ITERATIONS+" iterations=" + time);
+    }
+
+   public static Test suite() throws Exception
+   {
+      Test t1 = getDeploySetup(ByValueUnitTestCase.class, "jar-byvalue.jar");
+      return t1;
+   }
+
+}

Added: branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/ejb-jar.xml
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/ejb-jar.xml	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/ejb-jar.xml	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
+                         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
+<ejb-jar>
+    <enterprise-beans>
+
+        <session>
+           <description>TestByValue root Bean</description>
+           <ejb-name>RootTestByValue</ejb-name>
+           <home>org.jboss.test.testbyvalue.interfaces.RootStatelessSessionHome</home>
+           <remote>org.jboss.test.testbyvalue.interfaces.RootStatelessSession</remote>
+           <ejb-class>org.jboss.test.testbyvalue.bean.RootStatelessSessionBean</ejb-class>
+           <session-type>Stateless</session-type>
+           <transaction-type>Bean</transaction-type>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CalledByValue</ejb-ref-name>
+                <ejb-ref-type>Session</ejb-ref-type>
+                <home>org.jboss.test.testbyvalue.interfaces.ByValueStatelessSessionHome</home>
+                <remote>org.jboss.test.testbyvalue.interfaces.ByValueStatelessSession</remote>
+                <ejb-link>TestByValue</ejb-link>
+            </ejb-ref>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CalledByReference</ejb-ref-name>
+                <ejb-ref-type>Session</ejb-ref-type>
+                <home>org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSessionHome</home>
+                <remote>org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSession</remote>
+                <ejb-link>TestByReference</ejb-link>
+            </ejb-ref>
+            <ejb-ref>
+                <ejb-ref-name>ejb/TestByValueEntity</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.jboss.test.testbyvalue.interfaces.ByValueEntityHome</home>
+                <remote>org.jboss.test.testbyvalue.interfaces.ByValueEntity</remote>
+                <ejb-link>TestByValueEntity</ejb-link>
+            </ejb-ref>
+            <ejb-ref>
+                <ejb-ref-name>ejb/TestByReferenceEntity</ejb-ref-name>
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>org.jboss.test.testbyvalue.interfaces.ByValueEntityHome</home>
+                <remote>org.jboss.test.testbyvalue.interfaces.ByValueEntity</remote>
+                <ejb-link>TestByReferenceEntity</ejb-link>
+            </ejb-ref>
+          </session>
+        <session>
+           <description>TestByValue called Bean</description>
+           <ejb-name>TestByValue</ejb-name>
+           <home>org.jboss.test.testbyvalue.interfaces.ByValueStatelessSessionHome</home>
+           <remote>org.jboss.test.testbyvalue.interfaces.ByValueStatelessSession</remote>
+           <ejb-class>org.jboss.test.testbyvalue.bean.ByValueStatelessSessionBean</ejb-class>
+           <session-type>Stateless</session-type>
+           <transaction-type>Bean</transaction-type>
+        </session>
+        <session>
+           <description>TestByReferece called Bean</description>
+           <ejb-name>TestByReference</ejb-name>
+           <home>org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSessionHome</home>
+           <remote>org.jboss.test.testbyvalue.interfaces.ByReferenceStatelessSession</remote>
+           <ejb-class>org.jboss.test.testbyvalue.bean.ByReferenceStatelessSessionBean</ejb-class>
+           <session-type>Stateless</session-type>
+           <transaction-type>Bean</transaction-type>
+        </session>
+        <entity>
+             <description>TestByValue beans</description>
+             <ejb-name>TestByValueEntity</ejb-name>
+             <home>org.jboss.test.testbyvalue.interfaces.ByValueEntityHome</home>
+             <remote>org.jboss.test.testbyvalue.interfaces.ByValueEntity</remote>
+             <ejb-class>org.jboss.test.testbyvalue.bean.ByValueEntityBean</ejb-class>
+             <persistence-type>Bean</persistence-type>
+             <prim-key-class>java.lang.String</prim-key-class>
+             <reentrant>False</reentrant>
+             <primkey-field>name</primkey-field>
+         </entity>
+        <entity>
+             <description>TestByValue beans</description>
+             <ejb-name>TestByReferenceEntity</ejb-name>
+             <home>org.jboss.test.testbyvalue.interfaces.ByValueEntityHome</home>
+             <remote>org.jboss.test.testbyvalue.interfaces.ByValueEntity</remote>
+             <ejb-class>org.jboss.test.testbyvalue.bean.ByValueEntityBean</ejb-class>
+             <persistence-type>Bean</persistence-type>
+             <prim-key-class>java.lang.String</prim-key-class>
+             <reentrant>False</reentrant>
+             <primkey-field>name</primkey-field>
+         </entity>
+    </enterprise-beans>
+    <assembly-descriptor>
+    </assembly-descriptor>
+</ejb-jar>
+

Added: branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jboss.xml
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jboss.xml	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jboss.xml	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<jboss>
+    <enterprise-beans>
+        <session>
+          <ejb-name>RootTestByValue</ejb-name>
+          <jndi-name>RootTestByValue</jndi-name>
+        </session>
+        <session>
+          <ejb-name>TestByValue</ejb-name>
+          <call-by-value>true</call-by-value>
+        </session>
+        <session>
+          <ejb-name>TestByReference</ejb-name>
+          <call-by-value>false</call-by-value>
+        </session>
+        <entity>
+             <ejb-name>TestByValueEntity</ejb-name>
+             <call-by-value>true</call-by-value>
+         </entity>
+        <entity>
+             <ejb-name>TestByReferenceEntity</ejb-name>
+             <call-by-value>false</call-by-value>
+         </entity>
+    </enterprise-beans>
+</jboss>
+

Added: branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jbosscmp-jdbc.xml
===================================================================
--- branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jbosscmp-jdbc.xml	2006-11-01 19:32:52 UTC (rev 57969)
+++ branches/JBoss_3_2_7_CP/testsuite/src/resources/testbyvalue/META-INF/jbosscmp-jdbc.xml	2006-11-01 19:38:50 UTC (rev 57970)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jbosscmp-jdbc PUBLIC
+   "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN"
+   "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
+
+<jbosscmp-jdbc>
+   <defaults>
+   <!--
+      <datasource>java:/PostgresDS</datasource>
+      <datasource-mapping>PostgreSQL 7.2</datasource-mapping>
+   -->
+      <create-table>true</create-table>
+      <remove-table>true</remove-table>
+      <pk-constraint>true</pk-constraint>
+   </defaults>
+</jbosscmp-jdbc>
+




More information about the jboss-cvs-commits mailing list