[jboss-cvs] JBossAS SVN: r79234 - in projects/ejb3/trunk/proxy: src/test/java/org/jboss/ejb3/test/proxy and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 7 18:21:46 EDT 2008
Author: ALRubinger
Date: 2008-10-07 18:21:45 -0400 (Tue, 07 Oct 2008)
New Revision: 79234
Added:
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/BindingTest.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBean.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBeanBase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/LocalJndiBindingTest.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/RemoteJndiBindingTest.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/unit/
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/unit/BindingUnitTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase.java
projects/ejb3/trunk/proxy/src/test/resources/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase-beans.xml
Removed:
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxySessionTestCaseBase.java
Modified:
projects/ejb3/trunk/proxy/pom.xml
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession2xOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession30OnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionLocalOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionRemoteOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession2xOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession30OnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionLocalOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionRemoteOnlyTestCase.java
projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionTestCase.java
Log:
[EJBTHREE-1515] Added Unit Tests for explicit JNDI Bindings
Modified: projects/ejb3/trunk/proxy/pom.xml
===================================================================
--- projects/ejb3/trunk/proxy/pom.xml 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/pom.xml 2008-10-07 22:21:45 UTC (rev 79234)
@@ -107,7 +107,7 @@
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-test</artifactId>
- <version>0.1.2</version>
+ <version>0.1.4-SNAPSHOT</version>
<scope>test</scope>
</dependency>
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/BindingTest.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/BindingTest.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/BindingTest.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding;
+
+/**
+ * BindingTest
+ *
+ * Defines all functions required of
+ * the Remote Binding Test EJB
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface BindingTest
+{
+
+ /*
+ * Common functions
+ */
+
+ /**
+ * Echos the specified parameter
+ *
+ * @param param
+ */
+ String echo(String param);
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBean.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBean.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBean.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding;
+
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+
+import org.jboss.ejb3.annotation.LocalBinding;
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.ejb3.annotation.RemoteBindings;
+
+/**
+ * JndiBindingTestBean
+ *
+ * Tests EJB for explicit JNDI Bindings
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at Remote(RemoteJndiBindingTest.class)
+ at Local(LocalJndiBindingTest.class)
+ at RemoteBindings(
+{@RemoteBinding(jndiBinding = RemoteJndiBindingTest.JNDI_BINDING_1),
+ @RemoteBinding(jndiBinding = RemoteJndiBindingTest.JNDI_BINDING_2)})
+ at LocalBinding(jndiBinding = LocalJndiBindingTest.JNDI_BINDING)
+public class JndiBindingTestBean extends JndiBindingTestBeanBase implements RemoteJndiBindingTest, LocalJndiBindingTest
+{
+
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBeanBase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBeanBase.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/JndiBindingTestBeanBase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding;
+
+/**
+ * JndiBindingTestBeanBase
+ *
+ * Common base for @RemoteBinding test EJBs
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class JndiBindingTestBeanBase implements BindingTest
+{
+
+ /* (non-Javadoc)
+ * @see org.jboss.ejb3.test.proxy.binding.BindingTest#echo(java.lang.String)
+ */
+ public String echo(String param)
+ {
+ return param;
+ }
+
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/LocalJndiBindingTest.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/LocalJndiBindingTest.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/LocalJndiBindingTest.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding;
+
+/**
+ * LocalJndiBindingTest
+ *
+ * Local Business Interface defining an overridden
+ * JNDI Binding
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface LocalJndiBindingTest extends BindingTest
+{
+ /*
+ * Define an overridden JNDI Binding
+ */
+ String JNDI_BINDING = "MyOverriddenBinding/local";
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/RemoteJndiBindingTest.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/RemoteJndiBindingTest.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/RemoteJndiBindingTest.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+
+/**
+ * RemoteJndiBindingTest
+ *
+ * Remote Business Interface defining three overridden
+ * JNDI Bindings, as well as access to test a local binding
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at RemoteBinding(jndiBinding = RemoteJndiBindingTest.JNDI_BINDING_DECLARED_BY_BUSINESS_INTERFACE)
+public interface RemoteJndiBindingTest extends BindingTest
+{
+ /*
+ * Define some overridden JNDI Bindings to be declared by the EJB Impl Class
+ */
+ String JNDI_BINDING_1 = "MyOverriddenBinding1/remote";
+
+ String JNDI_BINDING_2 = "MyOverriddenBinding2/remote";
+
+ /**
+ * A JNDI Binding to be declared here on the business interface
+ */
+ String JNDI_BINDING_DECLARED_BY_BUSINESS_INTERFACE = "MyOverriddenBindingDeclaredByBusinessInterface/remote";
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/unit/BindingUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/unit/BindingUnitTestCase.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/binding/unit/BindingUnitTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,152 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.binding.unit;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import junit.framework.TestCase;
+
+import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.binding.BindingTest;
+import org.jboss.ejb3.test.proxy.binding.JndiBindingTestBean;
+import org.jboss.ejb3.test.proxy.binding.LocalJndiBindingTest;
+import org.jboss.ejb3.test.proxy.binding.RemoteJndiBindingTest;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
+import org.jboss.ejb3.test.proxy.common.Utils;
+import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * BindingUnitTestCase
+ *
+ * Unit Tests for explicitly-declared JNDI Bindings
+ *
+ * EJBTHREE-1515
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class BindingUnitTestCase extends SessionTestCaseBase
+{
+
+ // --------------------------------------------------------------------------------||
+ // Tests --------------------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Ensures that bindings at N Remote Locations are made and may be
+ * invoked upon.
+ */
+ @Test
+ public void testMultipleRemoteJndiBindings() throws Exception
+ {
+ // Initialize
+ String testMessage = "Find me at N JNDI Locations";
+
+ // Get a JNDI Context
+ Context context = new InitialContext(); // Props from jndi.properties on Client CP
+
+ // Lookup JNDI Binding Test EJB at Location 1, and invoke
+ Object location1 = context.lookup(RemoteJndiBindingTest.JNDI_BINDING_1);
+ TestCase.assertNotNull("Expected remote binding in JNDI at " + location1 + " was not found", location1);
+ TestCase.assertTrue(location1 instanceof BindingTest);
+ BindingTest test1 = (BindingTest) location1;
+ String result1 = test1.echo(testMessage);
+ TestCase.assertEquals(testMessage, result1);
+
+ // Lookup JNDI Binding Test EJB at Location 2, and invoke
+ Object location2 = context.lookup(RemoteJndiBindingTest.JNDI_BINDING_2);
+ TestCase.assertNotNull("Expected remote binding in JNDI at " + location2 + " was not found", location2);
+ TestCase.assertTrue(location2 instanceof BindingTest);
+ BindingTest test2 = (BindingTest) location2;
+ String result2 = test2.echo(testMessage);
+ TestCase.assertEquals(testMessage, result2);
+
+ // Lookup JNDI Binding Test EJB at Location 3, and invoke
+ Object location3 = context.lookup(RemoteJndiBindingTest.JNDI_BINDING_DECLARED_BY_BUSINESS_INTERFACE);
+ TestCase.assertNotNull("Expected remote binding in JNDI at " + location3 + " was not found", location2);
+ TestCase.assertTrue(location3 instanceof BindingTest);
+ BindingTest test3 = (BindingTest) location3;
+ String result3 = test3.echo(testMessage);
+ TestCase.assertEquals(testMessage, result3);
+ }
+
+ /**
+ * Ensures that an alternate local binding is made and may
+ * be invoked upon
+ *
+ * @throws Exception
+ */
+ @Test
+ public void testAlternateLocalJndiBinding() throws Exception
+ {
+ // Initialize
+ String testMessage = "Find me at Overridden Local JNDI Location";
+
+ // Get a JNDI Context
+ Context context = new InitialContext(); // Props from jndi.properties on Client CP
+
+ // Lookup JNDI Binding Test EJB at alternate local location, and invoke
+ Object localLocation = context.lookup(LocalJndiBindingTest.JNDI_BINDING);
+ TestCase.assertNotNull("Expected local binding in JNDI at " + localLocation + " was not found", localLocation);
+ TestCase.assertTrue(localLocation instanceof BindingTest);
+ BindingTest test = (BindingTest) localLocation;
+ String result = test.echo(testMessage);
+ TestCase.assertEquals(testMessage, result);
+ }
+
+ // --------------------------------------------------------------------------------||
+ // Lifecycle Methods --------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ /**
+ * Perform setup before any tests
+ *
+ * @throws Throwable
+ */
+ @BeforeClass
+ public static void setUpBeforeClass() throws Throwable
+ {
+ // Initialize
+ SessionTestCaseBase.setUpBeforeClass();
+
+ // Deploy MC Beans
+ bootstrap.deploy(SessionTestCaseBase.class);
+
+ // Create a SLSB
+ StatelessContainer container = Utils.createSlsb(JndiBindingTestBean.class);
+
+ // Install
+ Ejb3RegistrarLocator.locateRegistrar().bind(container.getName(), container);
+ }
+
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception
+ {
+ if (bootstrap != null)
+ bootstrap.shutdown();
+ bootstrap = null;
+ }
+}
Added: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase.java (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.proxy.common;
+
+import java.net.URL;
+
+import org.jboss.aop.AspectManager;
+import org.jboss.aop.AspectXmlLoader;
+import org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar;
+import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap;
+
+/**
+ * SessionTestCaseBase
+ *
+ * Operations common to Proxy Session Test Cases
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public abstract class SessionTestCaseBase
+{
+ // --------------------------------------------------------------------------------||
+ // Class Members ------------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ protected static EmbeddedTestMcBootstrap bootstrap;
+
+ public static final String FILENAME_EJB3_INTERCEPTORS_AOP = "ejb3-interceptors-aop.xml";
+
+ // --------------------------------------------------------------------------------||
+ // Lifecycle Methods --------------------------------------------------------------||
+ // --------------------------------------------------------------------------------||
+
+ public static void setUpBeforeClass() throws Throwable
+ {
+ bootstrap = new EmbeddedTestMcBootstrap();
+ bootstrap.run();
+
+ // Bind the Registrar
+ Ejb3RegistrarLocator.bindRegistrar(new Ejb3McRegistrar(bootstrap.getKernel()));
+
+ // Load ejb3-interceptors-aop.xml into AspectManager
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ URL url = cl.getResource(FILENAME_EJB3_INTERCEPTORS_AOP);
+ if (url == null)
+ {
+ throw new RuntimeException("Could not load " + AspectManager.class.getSimpleName()
+ + " with definitions from XML as file " + FILENAME_EJB3_INTERCEPTORS_AOP + " could not be found");
+ }
+ AspectXmlLoader.deployXML(url);
+ }
+}
Deleted: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxySessionTestCaseBase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxySessionTestCaseBase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxySessionTestCaseBase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, 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.proxy.session.unit;
-
-import java.net.URL;
-
-import org.jboss.aop.AspectManager;
-import org.jboss.aop.AspectXmlLoader;
-import org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar;
-import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
-import org.jboss.ejb3.test.mc.bootstrap.EmbeddedTestMcBootstrap;
-
-/**
- * ProxySessionTestCaseBase
- *
- * Operations common to Proxy Session Test Cases
- *
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
-public abstract class ProxySessionTestCaseBase
-{
- // --------------------------------------------------------------------------------||
- // Class Members ------------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- protected static EmbeddedTestMcBootstrap bootstrap;
-
- private static final String FILENAME_EJB3_INTERCEPTORS_AOP = "ejb3-interceptors-aop.xml";
-
- // --------------------------------------------------------------------------------||
- // Lifecycle Methods --------------------------------------------------------------||
- // --------------------------------------------------------------------------------||
-
- public static void setUpBeforeClass() throws Throwable
- {
- bootstrap = new EmbeddedTestMcBootstrap();
- bootstrap.run();
-
- // Bind the Registrar
- Ejb3RegistrarLocator.bindRegistrar(new Ejb3McRegistrar(bootstrap.getKernel()));
-
- // Load ejb3-interceptors-aop.xml into AspectManager
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- URL url = cl.getResource(FILENAME_EJB3_INTERCEPTORS_AOP);
- if (url == null)
- {
- throw new RuntimeException("Could not load " + AspectManager.class.getSimpleName()
- + " with definitions from XML as file " + FILENAME_EJB3_INTERCEPTORS_AOP + " could not be found");
- }
- AspectXmlLoader.deployXML(url);
- }
-}
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession2xOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession2xOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession2xOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -27,6 +27,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatefulContainer;
import org.jboss.ejb3.test.proxy.common.ejb.sfsb.MyStateful2xOnlyBean;
@@ -45,7 +46,7 @@
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
-public class ProxyStatefulSession2xOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatefulSession2xOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -98,7 +99,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatefulSession2xOnlyTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession30OnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession30OnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSession30OnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -30,6 +30,7 @@
import junit.framework.TestCase;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatefulContainer;
import org.jboss.ejb3.test.proxy.common.ejb.sfsb.MyStateful30OnlyBean;
@@ -48,7 +49,7 @@
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
-public class ProxyStatefulSession30OnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatefulSession30OnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -181,7 +182,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatefulSession30OnlyTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionLocalOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionLocalOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionLocalOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -28,6 +28,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatefulContainer;
import org.jboss.ejb3.test.proxy.common.ejb.sfsb.MyStatefulLocalBusiness;
@@ -46,7 +47,7 @@
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
-public class ProxyStatefulSessionLocalOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatefulSessionLocalOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -125,7 +126,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatefulSessionLocalOnlyTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionRemoteOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionRemoteOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionRemoteOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -28,6 +28,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatefulContainer;
import org.jboss.ejb3.test.proxy.common.ejb.sfsb.MyStatefulRemoteBusiness;
@@ -46,7 +47,7 @@
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
-public class ProxyStatefulSessionRemoteOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatefulSessionRemoteOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -125,7 +126,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatefulSessionRemoteOnlyTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatefulSessionTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -30,6 +30,7 @@
import junit.framework.TestCase;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatefulContainer;
import org.jboss.ejb3.test.proxy.common.ejb.sfsb.MyStatefulBean;
@@ -49,7 +50,7 @@
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
-public class ProxyStatefulSessionTestCase extends ProxySessionTestCaseBase
+public class ProxyStatefulSessionTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -206,7 +207,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatefulSessionTestCase.bootstrap.deploy(ProxyStatefulSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession2xOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession2xOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession2xOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -26,6 +26,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
import org.jboss.ejb3.test.proxy.common.ejb.slsb.MyStateless2xOnlyBean;
@@ -39,7 +40,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision: $
*/
-public class ProxyStatelessSession2xOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatelessSession2xOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -77,7 +78,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap and Deploy
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatelessSession2xOnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession30OnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession30OnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSession30OnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -27,6 +27,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
import org.jboss.ejb3.test.proxy.common.ejb.slsb.MyStateless30OnlyBean;
@@ -40,7 +41,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision: $
*/
-public class ProxyStatelessSession30OnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatelessSession30OnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -108,7 +109,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap and Deploy
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatelessSession30OnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionLocalOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionLocalOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionLocalOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -27,6 +27,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
import org.jboss.ejb3.test.proxy.common.ejb.slsb.MyStatelessLocal;
@@ -40,7 +41,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision: $
*/
-public class ProxyStatelessSessionLocalOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatelessSessionLocalOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -93,7 +94,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap and Deploy
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatelessSessionLocalOnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionRemoteOnlyTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionRemoteOnlyTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionRemoteOnlyTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -27,6 +27,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
import org.jboss.ejb3.test.proxy.common.ejb.slsb.MyStatelessRemote;
@@ -40,7 +41,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision: $
*/
-public class ProxyStatelessSessionRemoteOnlyTestCase extends ProxySessionTestCaseBase
+public class ProxyStatelessSessionRemoteOnlyTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -93,7 +94,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap and Deploy
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatelessSessionRemoteOnlyTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);
Modified: projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionTestCase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionTestCase.java 2008-10-07 21:30:28 UTC (rev 79233)
+++ projects/ejb3/trunk/proxy/src/test/java/org/jboss/ejb3/test/proxy/session/unit/ProxyStatelessSessionTestCase.java 2008-10-07 22:21:45 UTC (rev 79234)
@@ -27,6 +27,7 @@
import javax.naming.InitialContext;
import org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator;
+import org.jboss.ejb3.test.proxy.common.SessionTestCaseBase;
import org.jboss.ejb3.test.proxy.common.Utils;
import org.jboss.ejb3.test.proxy.common.container.StatelessContainer;
import org.jboss.ejb3.test.proxy.common.ejb.slsb.MyStatelessBean;
@@ -42,7 +43,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision: $
*/
-public class ProxyStatelessSessionTestCase extends ProxySessionTestCaseBase
+public class ProxyStatelessSessionTestCase extends SessionTestCaseBase
{
// --------------------------------------------------------------------------------||
@@ -128,7 +129,7 @@
public static void setUpBeforeClass() throws Throwable
{
// Create Bootstrap and Deploy
- ProxySessionTestCaseBase.setUpBeforeClass();
+ SessionTestCaseBase.setUpBeforeClass();
// Deploy MC Beans
ProxyStatelessSessionTestCase.bootstrap.deploy(ProxyStatelessSessionTestCase.class);
Added: projects/ejb3/trunk/proxy/src/test/resources/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase-beans.xml
===================================================================
--- projects/ejb3/trunk/proxy/src/test/resources/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase-beans.xml (rev 0)
+++ projects/ejb3/trunk/proxy/src/test/resources/org/jboss/ejb3/test/proxy/common/SessionTestCaseBase-beans.xml 2008-10-07 22:21:45 UTC (rev 79234)
@@ -0,0 +1,72 @@
+<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">
+
+ <!--
+
+ JNDI
+
+ The requisite Naming Server
+
+ -->
+ <bean name="NameServer" class="org.jnp.server.SingletonNamingServer" />
+
+ <!--
+
+ JNDI Registrars
+
+ -->
+
+ <!-- SLSB JNDI Registrar -->
+ <bean name="org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar"
+ class="org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar">
+ <constructor>
+ <parameter>
+ org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessionProxyObjectFactory
+ </parameter>
+ </constructor>
+ <depends>NameServer</depends>
+ </bean>
+
+ <!-- SFSB JNDI Registrar -->
+ <bean name="org.jboss.ejb3.JndiRegistrar.Session.SFSBJndiRegistrar"
+ class="org.jboss.ejb3.proxy.jndiregistrar.JndiStatefulSessionRegistrar">
+ <constructor>
+ <parameter>
+ org.jboss.ejb3.proxy.objectfactory.session.stateful.StatefulSessionProxyObjectFactory
+ </parameter>
+ </constructor>
+ <depends>NameServer</depends>
+ </bean>
+
+ <!--
+
+ Remoting
+
+ -->
+
+ <!-- Remoting Configuration -->
+ <bean name="ServerConfiguration"
+ class="org.jboss.remoting.ServerConfiguration">
+ <property name="invocationHandlers">
+ <map keyClass="java.lang.String" valueClass="java.lang.String">
+ <entry>
+ <key>AOP</key>
+ <value>
+ org.jboss.aspects.remoting.AOPRemotingInvocationHandler
+ </value>
+ </entry>
+ </map>
+ </property>
+ </bean>
+
+ <!-- Remoting Connector -->
+ <bean name="org.jboss.ejb3.RemotingConnector"
+ class="org.jboss.remoting.transport.Connector">
+ <property name="invokerLocator">socket://0.0.0.0:3873</property>
+ <property name="serverConfiguration">
+ <inject bean="ServerConfiguration" />
+ </property>
+ </bean>
+
+</deployment>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list