[jboss-cvs] JBossAS SVN: r112201 - in branches/JBPAPP_5_1/testsuite: imports and 12 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 6 01:35:33 EDT 2011


Author: jiwils
Date: 2011-09-06 01:35:32 -0400 (Tue, 06 Sep 2011)
New Revision: 112201

Added:
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJB.java
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBBean.java
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBHome.java
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/idl/
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/idl/jbpapp6462.idl
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServant.java
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServantBean.java
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/test/JBPAPP6462TestCase.java
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/bean/
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/bean/jboss-beans.xml
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/application.xml
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/jboss-app.xml
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ejb/
   branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ejb/ejb-jar.xml
Modified:
   branches/JBPAPP_5_1/testsuite/build.xml
   branches/JBPAPP_5_1/testsuite/imports/sections/iiop.xml
   branches/JBPAPP_5_1/testsuite/imports/test-jars.xml
Log:
Test case for JBPAPP-6462.

Modified: branches/JBPAPP_5_1/testsuite/build.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/build.xml	2011-09-04 01:41:16 UTC (rev 112200)
+++ branches/JBPAPP_5_1/testsuite/build.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -939,7 +939,7 @@
 
    </target>
 
-   <target name="compile-classes-only" depends="compile-annotated-classes-50">
+   <target name="compile-classes-only" depends="compile-annotated-classes-50,compile-jacorb-stubs">
       <mkdir dir="${build.classes}"/>
       <javac destdir="${build.classes}"
          optimize="${javac.optimize}"
@@ -975,9 +975,26 @@
          >
          <classpath refid="tests.compile.classpath"/>
          <patternset refid="rmic.includes" />
-      </rmic>
+      </rmic>      
    </target>
+   
+   <target name="compile-jacorb-stubs">
+      <!-- Create JacORB-based Stubs for JBPAPP-6462 -->
+      <taskdef name="jacidl" classname="org.jacorb.idl.JacIDL">
+	<classpath>
+	    <pathelement location="../thirdparty/jacorb/lib/idl.jar"/>
+	    <pathelement location="../thirdparty/apache-avalon-logkit/lib/logkit.jar"/>
+        </classpath>
+      </taskdef>
 
+      <jacidl srcdir="${source.java}/org/jboss/test/iiop/jbpapp6462/idl"
+              destdir="${source.java}"
+              includes="jbpapp6462.idl"
+              all="true">
+	<i2jpackage names=":org.jboss.test.iiop.jbpapp6462.generated"/>
+      </jacidl>
+   </target>
+
    <!-- Compile resource files -->
    <target name="compile-resources">
       <mkdir dir="${build.resources}"/>

Modified: branches/JBPAPP_5_1/testsuite/imports/sections/iiop.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/imports/sections/iiop.xml	2011-09-04 01:41:16 UTC (rev 112200)
+++ branches/JBPAPP_5_1/testsuite/imports/sections/iiop.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -33,7 +33,40 @@
         <fileset dir="${build.classes}">
           <include name="org/jboss/test/iiop/jbpapp6469/**"/>
         </fileset>
+      </jar>      
+   </target>
+   
+   <!-- iiop TCCL test / JBPAPP-6462-->
+   <target name="_jars-iioptccl">
+      <mkdir dir="${build.lib}"/>
+
+      <!-- EJB -->
+      <jar destfile="${build.lib}/jbpapp6462-ejb.jar">
+	 <metainf dir="${build.resources}/iiop-jbpapp6462/ejb"/>
+         <fileset dir="${build.classes}">
+	    <include name="org/jboss/test/iiop/jbpapp6462/ejb/**"/>
+	    <include name="org/jboss/test/iiop/jbpapp6462/generated/**"/>
+	    <include name="org/jboss/test/iiop/jbpapp6462/servant/**"/>
+	  </fileset>
       </jar>
+      
+      <!-- Servant 
+      <jar destfile="${build.lib}/jbpapp6462-servant.jar">
+         <fileset dir="${build.classes}">
+	    <include name="org/jboss/test/iiop/jbpapp6462/generated/**"/>
+	    <include name="org/jboss/test/iiop/jbpapp6462/servant/**"/>
+	  </fileset>
+      </jar>      -->
+      
+      <!-- EAR -->
+      <jar destfile="${build.lib}/jbpapp6462.ear">
+	 <metainf dir="${build.resources}/iiop-jbpapp6462/ear"/>
+         <metainf dir="${build.resources}/iiop-jbpapp6462/bean"/>
+	 <fileset dir="${build.lib}">
+	    <include name="jbpapp6462-ejb.jar"/>
+	    <include name="jbpapp6462-servant.jar"/>
+	  </fileset>
+      </jar>
    </target>
    
    <!-- iiop timing test -->

Modified: branches/JBPAPP_5_1/testsuite/imports/test-jars.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/imports/test-jars.xml	2011-09-04 01:41:16 UTC (rev 112200)
+++ branches/JBPAPP_5_1/testsuite/imports/test-jars.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -129,6 +129,7 @@
         _jars-httpsessionreplication,
         _jars-idgen,
         _jars-iiop,
+	_jars-iioptccl,
         _jars-iiopperf,
         _jars-invokers,
         _jars-isolation,


Property changes on: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462
___________________________________________________________________
Added: svn:ignore
   + generated


Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJB.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJB.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJB.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.jbpapp6462.ejb;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.EJBObject;
+
+public interface TestEJB extends EJBObject
+{
+   void testEJBMethod() throws RemoteException;
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBBean.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBBean.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBBean.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.jbpapp6462.ejb;
+
+import javax.ejb.SessionBean;
+import javax.ejb.SessionContext;
+
+/**
+ * The EJB used as a part of the test for JBPAPP-6462.
+ */
+public class TestEJBBean implements SessionBean
+{
+   private SessionContext sessionContext;
+
+   public void setSessionContext(SessionContext sessionContext)
+   {
+      this.sessionContext = sessionContext;
+   }
+
+   public void testEJBMethod()
+   {
+      // This method only exists to test that this EJB can be called from a
+      // CORBA servant.
+   }
+    
+   public void ejbCreate()
+   {
+   }
+    
+   public void ejbRemove()
+   {
+   }
+    
+   public void ejbActivate()
+   {
+   }
+    
+   public void ejbPassivate()
+   {
+   }    
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBHome.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBHome.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/ejb/TestEJBHome.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.jbpapp6462.ejb;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBHome;
+
+public interface TestEJBHome extends EJBHome
+{
+   TestEJB create() throws RemoteException, CreateException;
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/idl/jbpapp6462.idl
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/idl/jbpapp6462.idl	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/idl/jbpapp6462.idl	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,13 @@
+/**
+ * This interface is for use with JBPAPP-6462-based test cases...
+ *
+ * The generated classes resulting from IDL compilation are stored in the
+ * org.jboss.test.iiop.jbpapp6462.generated package. 
+ */
+interface TestServant
+{
+    /**
+     * A test method.
+     */
+    void testServantMethod();
+};

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServant.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServant.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServant.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.jbpapp6462.servant;
+
+import java.util.Hashtable;
+
+import javax.naming.InitialContext;
+
+import javax.rmi.PortableRemoteObject;
+
+import org.jboss.test.iiop.jbpapp6462.ejb.TestEJB;
+import org.jboss.test.iiop.jbpapp6462.ejb.TestEJBHome;
+
+import org.jboss.test.iiop.jbpapp6462.generated.TestServantPOA;
+
+/**
+ * The CORBA servant used for testing JBPAPP-6462.  This servant calls an
+ * in EAR EJB component.
+ */
+public class TestServant extends TestServantPOA
+{
+   public void testServantMethod()
+   {
+      try
+      {
+         // Lookup and call the in-EAR EJB.  Specifying java.naming.provider.url
+         // is required to recreate the problem described in JBPAPP-6462 even
+         // though in this case we're actually making an in-VM call.
+         Hashtable properties = new Hashtable();
+         properties.put("java.naming.provider.url", getJNDIURL());
+         InitialContext ic = new InitialContext(properties);
+         Object obj = ic.lookup("jbpapp6462");
+
+         // This method call is what causes the CNFE.
+         TestEJBHome home = (TestEJBHome) PortableRemoteObject.narrow(obj, TestEJBHome.class);
+         TestEJB test = home.create();
+         test.testEJBMethod();
+         System.out.println("TestEJB.testEJBMethod successfully invoked.");
+      }
+      catch (Throwable t)
+      {
+         throw new RuntimeException("Unexpected exception: ", t);
+      }
+   }
+
+   /**
+    * Get the JNDI URL of the JBoss instance in which this servant is running.
+    */
+   private String getJNDIURL()
+   {
+      String bindAddress = System.getProperty("jboss.bind.address");
+      return "jnp://" + bindAddress + ":1099";
+   }
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServantBean.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServantBean.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/jbpapp6462/servant/TestServantBean.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,76 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.jbpapp6462.servant;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.omg.CosNaming.NamingContextExt;
+import org.omg.CosNaming.NamingContextHelper;
+
+import org.omg.CosNaming.NamingContextPackage.CannotProceed;
+import org.omg.CosNaming.NamingContextPackage.InvalidName;
+import org.omg.CosNaming.NamingContextPackage.NotFound;
+
+import org.omg.PortableServer.POA;
+
+import org.omg.PortableServer.POAPackage.ObjectNotActive;
+import org.omg.PortableServer.POAPackage.ServantNotActive;
+import org.omg.PortableServer.POAPackage.WrongAdapter;
+import org.omg.PortableServer.POAPackage.WrongPolicy;
+
+/**
+ * A micro-container bean that activates and deactivates the CORBA servant used
+ * as a part of the test for JBPAPP-6462.
+ */
+public class TestServantBean
+{
+   private TestServant servant;
+   private org.omg.CORBA.Object reference;
+
+   public void start()
+   throws CannotProceed, InvalidName, NamingException,
+          NotFound, ServantNotActive, WrongPolicy
+   {
+      servant = new TestServant();
+      InitialContext ic = new InitialContext();
+      POA poa = (POA) ic.lookup("java:JBossCorbaPOA");
+      reference = poa.servant_to_reference(servant);    
+      NamingContextExt nce = (NamingContextExt) ic.lookup("java:JBossCorbaNaming");
+      nce.rebind(nce.to_name("jbpapp6462"), reference);
+      System.out.println("Servant started...");
+    }
+    
+   public void stop()
+   throws CannotProceed, InvalidName, NamingException, NotFound,
+          ObjectNotActive, WrongAdapter, WrongPolicy
+   {             
+      InitialContext ic = new InitialContext();
+      NamingContextExt nce = (NamingContextExt) ic.lookup("java:JBossCorbaNaming");
+      nce.unbind(nce.to_name("jbpapp6462"));
+      POA poa = (POA) ic.lookup("java:JBossCorbaPOA");
+      poa.deactivate_object(poa.reference_to_id(reference));
+      reference = null;
+      servant = null;
+      System.out.println("Servant stopped.");
+   }
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/test/JBPAPP6462TestCase.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/test/JBPAPP6462TestCase.java	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/iiop/test/JBPAPP6462TestCase.java	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * 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.iiop.test;
+
+import org.omg.CORBA.ORB;
+
+import org.omg.CosNaming.NamingContextExt;
+import org.omg.CosNaming.NamingContextExtHelper;
+
+import org.omg.CosNaming.NamingContextPackage.CannotProceed;
+import org.omg.CosNaming.NamingContextPackage.InvalidName;
+import org.omg.CosNaming.NamingContextPackage.NotFound;
+
+import org.jboss.test.iiop.jbpapp6462.generated.TestServant;
+import org.jboss.test.iiop.jbpapp6462.generated.TestServantHelper;
+
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Test for JBPAPP-6462.
+ *
+ * A CORBA client which calls a CORBA servant which calls an in-EAR EJB when
+ * the related EAR is isolated.
+ *
+ * @author jiwils
+ */
+public class JBPAPP6462TestCase extends JBossTestCase
+{
+   private final String DEPLOYMENT_URL = "jbpapp6462.ear";
+
+   public JBPAPP6462TestCase(String name)
+   {
+      super(name);
+   }
+
+   /* TestCase Overrides */
+
+   protected void setUp()
+   throws Exception
+   {
+      super.setUp();
+      deploy(DEPLOYMENT_URL);
+   }
+
+   protected void tearDown()
+   throws Exception
+   {
+      super.tearDown();
+      undeploy(DEPLOYMENT_URL);
+   }
+
+   public void testJBPAPP6462()
+   throws org.omg.CORBA.ORBPackage.InvalidName, CannotProceed,
+          InvalidName, NotFound
+   {
+      ORB orb = ORB.init(new String[0], null);
+
+      org.omg.CORBA.Object nameServiceRef =
+         orb.resolve_initial_references("NameService");
+
+      NamingContextExt nce = NamingContextExtHelper.narrow(nameServiceRef);
+      org.omg.CORBA.Object testServantRef = nce.resolve_str("jbpapp6462");
+      TestServant testServant = TestServantHelper.narrow(testServantRef);
+      testServant.testServantMethod();
+      orb.shutdown(true);
+   }
+}
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/bean/jboss-beans.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/bean/jboss-beans.xml	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/bean/jboss-beans.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
+	    xmlns="urn:jboss:bean-deployer:2.0">  
+   <bean name="TestServantBean" class="org.jboss.test.iiop.jbpapp6462.servant.TestServantBean"/>               
+</deployment>
+

Added: branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/application.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/application.xml	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/application.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application xmlns="http://java.sun.com/xml/ns/javaee"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
+	     version="5">
+   <display-name>JBPAPP-6462 Test Application</display-name>
+      <module>
+         <ejb>jbpapp6462-ejb.jar</ejb>
+      </module>
+</application>

Added: branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/jboss-app.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/jboss-app.xml	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ear/jboss-app.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-app
+    PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
+
+<jboss-app>
+  <loader-repository>
+     org.jboss.test:loader=jbpapp6462
+     <loader-repository-config>
+        java2ParentDelegation=false
+     </loader-repository-config>
+  </loader-repository>
+</jboss-app>
\ No newline at end of file

Added: branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ejb/ejb-jar.xml
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ejb/ejb-jar.xml	                        (rev 0)
+++ branches/JBPAPP_5_1/testsuite/src/resources/iiop-jbpapp6462/ejb/ejb-jar.xml	2011-09-06 05:35:32 UTC (rev 112201)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
+	 version="2.1">
+   <enterprise-beans>
+      <session>
+         <ejb-name>jbpapp6462</ejb-name>
+         <home>org.jboss.test.iiop.jbpapp6462.ejb.TestEJBHome</home>
+         <remote>org.jboss.test.iiop.jbpapp6462.ejb.TestEJB</remote>
+         <ejb-class>org.jboss.test.iiop.jbpapp6462.ejb.TestEJBBean</ejb-class>
+         <session-type>Stateless</session-type>
+         <transaction-type>Bean</transaction-type>
+      </session>
+   </enterprise-beans>
+</ejb-jar>
\ No newline at end of file



More information about the jboss-cvs-commits mailing list