[jboss-cvs] JBossAS SVN: r104496 - in projects/ejb3/components/embedded/trunk: build and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 5 17:18:06 EDT 2010
Author: ALRubinger
Date: 2010-05-05 17:18:05 -0400 (Wed, 05 May 2010)
New Revision: 104496
Added:
projects/ejb3/components/embedded/trunk/impl-base/src/test/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBaseUnitTest.java
projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jndi.properties
projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jnpserver.properties
projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/naming-server-jboss-beans.xml
Modified:
projects/ejb3/components/embedded/trunk/api/src/main/java/org/jboss/ejb3/embedded/api/JBossEJBContainer.java
projects/ejb3/components/embedded/trunk/build/pom.xml
projects/ejb3/components/embedded/trunk/impl-as/src/test/java/org/jboss/ejb3/embedded/impl/as/EmbeddedEJBContainerExistingMCServerIntegrationUnitTest.java
projects/ejb3/components/embedded/trunk/impl-base/pom.xml
projects/ejb3/components/embedded/trunk/impl-base/src/main/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBase.java
Log:
[EJBTHREE-2083] Add tests for ShrinkWrap deployment to JBossEJBContainer
Modified: projects/ejb3/components/embedded/trunk/api/src/main/java/org/jboss/ejb3/embedded/api/JBossEJBContainer.java
===================================================================
--- projects/ejb3/components/embedded/trunk/api/src/main/java/org/jboss/ejb3/embedded/api/JBossEJBContainer.java 2010-05-05 21:04:26 UTC (rev 104495)
+++ projects/ejb3/components/embedded/trunk/api/src/main/java/org/jboss/ejb3/embedded/api/JBossEJBContainer.java 2010-05-05 21:18:05 UTC (rev 104496)
@@ -57,17 +57,19 @@
void close();
/**
- * Deploys the specified {@link Archive}s into the container
- * @param archive
- * @throws EJBDeploymentException
+ * Deploys the specified {@link Archive}s into the container.
+ * @param archives
+ * @throws EJBDeploymentException If an error occurred in deployment
+ * @throws IllegalArgumentException If archives is null
*/
- void deploy(Archive<?>... archives) throws EJBDeploymentException;
+ void deploy(Archive<?>... archives) throws EJBDeploymentException, IllegalArgumentException;
/**
- * Undeploys the specified {@link Archive}s from the container
- * @param archive
- * @throws EJBDeploymentException
+ * Undeploys the specified {@link Archive}s from the container.
+ * @param archives
+ * @throws EJBDeploymentException If an error occurred in deployment
+ * @throws IllegalArgumentException If archives is null
*/
- void undeploy(Archive<?>... archives) throws EJBDeploymentException;
+ void undeploy(Archive<?>... archives) throws EJBDeploymentException, IllegalArgumentException;
}
Modified: projects/ejb3/components/embedded/trunk/build/pom.xml
===================================================================
--- projects/ejb3/components/embedded/trunk/build/pom.xml 2010-05-05 21:04:26 UTC (rev 104495)
+++ projects/ejb3/components/embedded/trunk/build/pom.xml 2010-05-05 21:18:05 UTC (rev 104496)
@@ -28,7 +28,7 @@
<!-- Versioning -->
<version.junit_junit>4.7</version.junit_junit>
- <version.org.jboss.reloaded_jboss.reloaded.vdf.bootstrap.minimal>0.1.1</version.org.jboss.reloaded_jboss.reloaded.vdf.bootstrap.minimal>
+ <version.org.jboss.reloaded_jboss.reloaded.vdf.bootstrap.minimal>0.1.2</version.org.jboss.reloaded_jboss.reloaded.vdf.bootstrap.minimal>
<version.org.jboss.kernel>2.2.0.Alpha9</version.org.jboss.kernel>
<version.org.jboss.spec.javax.ejb_jboss-ejb-api_3.1_spec>1.0.0.Beta2</version.org.jboss.spec.javax.ejb_jboss-ejb-api_3.1_spec>
<version.org.jboss.logging>2.2.0.CR1</version.org.jboss.logging>
Modified: projects/ejb3/components/embedded/trunk/impl-as/src/test/java/org/jboss/ejb3/embedded/impl/as/EmbeddedEJBContainerExistingMCServerIntegrationUnitTest.java
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-as/src/test/java/org/jboss/ejb3/embedded/impl/as/EmbeddedEJBContainerExistingMCServerIntegrationUnitTest.java 2010-05-05 21:04:26 UTC (rev 104495)
+++ projects/ejb3/components/embedded/trunk/impl-as/src/test/java/org/jboss/ejb3/embedded/impl/as/EmbeddedEJBContainerExistingMCServerIntegrationUnitTest.java 2010-05-05 21:18:05 UTC (rev 104496)
@@ -29,14 +29,19 @@
import javax.ejb.embeddable.EJBContainer;
+import org.jboss.beans.metadata.plugins.builder.BeanMetaDataBuilderFactory;
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
import org.jboss.bootstrap.api.descriptor.BootstrapDescriptor;
import org.jboss.bootstrap.api.lifecycle.LifecycleState;
import org.jboss.bootstrap.api.mc.server.MCServer;
import org.jboss.bootstrap.api.mc.server.MCServerFactory;
import org.jboss.deployers.client.spi.Deployment;
import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.vfs.spi.client.VFSDeploymentFactory;
import org.jboss.reloaded.api.ReloadedDescriptors;
+import org.jboss.reloaded.shrinkwrap.api.ShrinkWrapDeployer;
+import org.jboss.shrinkwrap.api.Archive;
import org.jboss.vfs.VFS;
import org.junit.AfterClass;
import org.junit.Assert;
@@ -135,6 +140,19 @@
// Start
server.start();
+ // Install a mock ShrinkWrapDeployer (we don't need a real one here)
+ final BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(
+ MockShrinkWrapDeployer.class.getName()).setName(MockShrinkWrapDeployer.class.getSimpleName());
+ try
+ {
+ server.getKernel().getController().install(builder.getBeanMetaData());
+ }
+ catch (final Throwable e)
+ {
+ throw new Exception("Could not install ShrinkWrapDeployer", e);
+ }
+
+ // Install the AS / EJB Embedded Adaptor
final URL codebase = EmbeddedEJBContainerExistingMCServerIntegrationUnitTest.class.getProtectionDomain()
.getCodeSource().getLocation();
final URL classes = new URL(codebase, "../classes/");
@@ -180,10 +198,33 @@
{
final EJBContainer container = EJBContainer.createEJBContainer();
Assert.assertNotNull("Container was null", container);
-
Assert.assertTrue("Container is not of expected type", container instanceof JBossASEmbeddedEJBContainer);
- JBossASEmbeddedEJBContainer jbossContainer = (JBossASEmbeddedEJBContainer) container;
+ }
+ //-------------------------------------------------------------------------------------||
+ // Internal Helpers -------------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * Mock NOOP {@link ShrinkWrapDeployer} implementation
+ */
+ public static final class MockShrinkWrapDeployer implements ShrinkWrapDeployer
+ {
+
+ @Override
+ public void deploy(final Archive<?>... archives) throws IllegalArgumentException, DeploymentException
+ {
+ //NO-OP
+
+ }
+
+ @Override
+ public void undeploy(final Archive<?>... archives) throws IllegalArgumentException, DeploymentException
+ {
+ //NO-OP
+
+ }
+
}
}
Modified: projects/ejb3/components/embedded/trunk/impl-base/pom.xml
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/pom.xml 2010-05-05 21:04:26 UTC (rev 104495)
+++ projects/ejb3/components/embedded/trunk/impl-base/pom.xml 2010-05-05 21:18:05 UTC (rev 104496)
@@ -28,6 +28,10 @@
</build>
<properties>
+
+ <!-- Versioning -->
+ <version.org.jboss.threads>2.0.0.CR4</version.org.jboss.threads>
+
</properties>
@@ -70,6 +74,28 @@
<artifactId>shrinkwrap-extension-vfs3</artifactId>
<scope>test</scope>
</dependency>
+
+ <!-- JBoss Threads (only needed for as long as we've got ShrinkWrapDeployer in use) -->
+ <dependency>
+ <groupId>org.jboss.threads</groupId>
+ <artifactId>jboss-threads</artifactId>
+ <version>${version.org.jboss.threads}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.threads</groupId>
+ <artifactId>jboss-threads-metadata</artifactId>
+ <version>${version.org.jboss.threads}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.naming</groupId>
+ <artifactId>jnpserver</artifactId>
+ <version>5.0.0.CR1</version>
+ <scope>test</scope>
+ </dependency>
+
+
</dependencies>
</project>
Modified: projects/ejb3/components/embedded/trunk/impl-base/src/main/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBase.java
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/src/main/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBase.java 2010-05-05 21:04:26 UTC (rev 104495)
+++ projects/ejb3/components/embedded/trunk/impl-base/src/main/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBase.java 2010-05-05 21:18:05 UTC (rev 104496)
@@ -45,6 +45,7 @@
import org.jboss.ejb3.embedded.impl.base.scanner.ClassPathEjbJarScanner;
import org.jboss.kernel.Kernel;
import org.jboss.logging.Logger;
+import org.jboss.reloaded.shrinkwrap.api.ShrinkWrapDeployer;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.vfs.VFS;
import org.jboss.vfs.VirtualFile;
@@ -93,6 +94,12 @@
*/
private final Set<Deployment> deployments;
+ /**
+ * @see @see http://community.jboss.org/message/540998
+ */
+ @Deprecated
+ private final ShrinkWrapDeployer shrinkWrapDeployer;
+
//-------------------------------------------------------------------------------------||
// Constructor ------------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
@@ -111,6 +118,11 @@
MC_BIND_NAME_MAIN_DEPLOYER).getTarget();
assert deployer != null : "Main Deployer found in the Kernel was null";
+ // Obtain ShrinkWrapDeployer
+ final ShrinkWrapDeployer shrinkWrapDeployer = (ShrinkWrapDeployer) kernel.getController().getContextByClass(
+ ShrinkWrapDeployer.class).getTarget();
+ assert shrinkWrapDeployer != null : "ShrinkWrapDeployer found in Kernel was null";
+
log.info("Started JBoss Embedded " + EJBContainer.class.getSimpleName());
log.info("Modules for deployment: " + Arrays.asList(modules));
@@ -118,6 +130,7 @@
this.mcServer = server;
this.deployer = deployer;
this.deployments = new HashSet<Deployment>();
+ this.shrinkWrapDeployer = shrinkWrapDeployer;
}
protected JBossEJBContainerBase(final Map<?, ?> properties, final MCServer server)
@@ -245,10 +258,24 @@
* @see org.jboss.ejb3.embedded.api.JBossEJBContainer#deploy(org.jboss.shrinkwrap.api.Archive<?>[])
*/
@Override
- public void deploy(final Archive<?>... archives) throws EJBDeploymentException
+ public void deploy(final Archive<?>... archives) throws EJBDeploymentException, IllegalArgumentException
{
- //TODO
- throw new UnsupportedOperationException("Not yet implemented; to delegate to the Reloaded ShrinkWrapDeployer");
+ // Precondition checks
+ if (archives == null)
+ {
+ throw new IllegalArgumentException("archives must be supplied");
+ }
+
+ // Deploy
+ try
+ {
+ shrinkWrapDeployer.deploy(archives);
+ }
+ catch (final DeploymentException e)
+ {
+ // Translate
+ throw EJBDeploymentException.newInstance("Could not deploy " + Arrays.asList(archives), e);
+ }
}
/**
@@ -256,10 +283,24 @@
* @see org.jboss.ejb3.embedded.api.JBossEJBContainer#undeploy(org.jboss.shrinkwrap.api.Archive<?>[])
*/
@Override
- public void undeploy(final Archive<?>... archives) throws EJBDeploymentException
+ public void undeploy(final Archive<?>... archives) throws EJBDeploymentException, IllegalArgumentException
{
- //TODO
- throw new UnsupportedOperationException("Not yet implemented; to delegate to the Reloaded ShrinkWrapDeployer");
+ // Precondition checks
+ if (archives == null)
+ {
+ throw new IllegalArgumentException("archives must be supplied");
+ }
+
+ // Undeploy
+ try
+ {
+ shrinkWrapDeployer.undeploy(archives);
+ }
+ catch (final DeploymentException e)
+ {
+ // Translate
+ throw EJBDeploymentException.newInstance("Could not undeploy " + Arrays.asList(archives), e);
+ }
}
/**
@@ -280,22 +321,15 @@
@Override
public Context getContext()
{
- //TODO
- // We could return this assuming the naming system is up, as one idea (probably cache the context)
+ // We could return this assuming the naming system is up, as one idea
try
{
- new InitialContext();
+ return new InitialContext();
}
catch (final NamingException e)
{
throw new RuntimeException("Could not create new naming context", e);
}
- // Just throw an exception for now
- throw new UnsupportedOperationException("IMPLEMENT");
}
- //-------------------------------------------------------------------------------------||
- // Lifecycle Methods ------------------------------------------------------------------||
- //-------------------------------------------------------------------------------------||
-
}
Added: projects/ejb3/components/embedded/trunk/impl-base/src/test/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBaseUnitTest.java
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/src/test/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBaseUnitTest.java (rev 0)
+++ projects/ejb3/components/embedded/trunk/impl-base/src/test/java/org/jboss/ejb3/embedded/impl/base/JBossEJBContainerBaseUnitTest.java 2010-05-05 21:18:05 UTC (rev 104496)
@@ -0,0 +1,264 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.embedded.impl.base;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.naming.Context;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.jboss.bootstrap.api.descriptor.BootstrapDescriptor;
+import org.jboss.bootstrap.api.mc.server.MCServer;
+import org.jboss.bootstrap.api.mc.server.MCServerFactory;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.ejb3.embedded.api.EJBDeploymentException;
+import org.jboss.ejb3.embedded.api.JBossEJBContainer;
+import org.jboss.kernel.spi.dependency.KernelController;
+import org.jboss.reloaded.api.ReloadedDescriptors;
+import org.jboss.reloaded.shrinkwrap.api.ShrinkWrapDeployer;
+import org.jboss.reloaded.shrinkwrap.api.ShrinkWrapReloadedDescriptors;
+import org.jboss.shrinkwrap.api.Asset;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Ensures that the {@link JBossEJBContainerProviderBase}
+ * implementation is working as contracted by {@link JBossEJBContainer}
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class JBossEJBContainerBaseUnitTest
+{
+
+ //-------------------------------------------------------------------------------------||
+ // Class Members ----------------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * The underlying MC server
+ */
+ private static final MCServer server = MCServerFactory.createServer();
+
+ //-------------------------------------------------------------------------------------||
+ // Instance Members -------------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * {@link JBossEJBContainer} instance under test
+ */
+ private JBossEJBContainer ejbContainer;
+
+ //-------------------------------------------------------------------------------------||
+ // Lifecycle --------------------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * Configures and starts the underlying MC server
+ */
+ @BeforeClass
+ public static void startMc() throws Exception
+ {
+
+ // Define the descriptors to use to start VDF
+ final List<BootstrapDescriptor> descriptors = server.getConfiguration().getBootstrapDescriptors();
+ descriptors.add(ReloadedDescriptors.getClassLoadingDescriptor());
+ descriptors.add(ReloadedDescriptors.getVdfDescriptor());
+ descriptors.add(ReloadedDescriptors.getThreadsDescriptor());
+ descriptors.add(ShrinkWrapReloadedDescriptors.getTempFileProviderDescriptor());
+ descriptors.add(ShrinkWrapReloadedDescriptors.getShrinkWrapDeployerDescriptor());
+
+ // Start
+ server.start();
+
+ }
+
+ /**
+ * Creates the EJB Container under test
+ */
+ @Before
+ public void createEJBContainer()
+ {
+ ejbContainer = new TestJBossEJBContainer(new HashMap<Object, Object>(), new String[]
+ {}, server);
+ }
+
+ /**
+ * Cleans up and shuts down MC
+ * @throws Exception
+ */
+ @AfterClass
+ public static void stopMc() throws Exception
+ {
+ // Take out the ShrinkWrapDeployer
+ final KernelController conroller = server.getKernel().getController();
+ final ControllerContext context = server.getKernel().getController().getContextByClass(ShrinkWrapDeployer.class);
+ conroller.unregisterInstantiatedContext(context, ShrinkWrapDeployer.class);
+
+ // Shutdown
+ server.stop();
+ }
+
+ //-------------------------------------------------------------------------------------||
+ // Required Implementations -----------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * Ensures that ShrinkWrap deployments are delegated along as expected
+ */
+ @Test
+ public void shrinkWrapDeployment()
+ {
+ // Create a test archive which installs a POJO into MC
+ final JavaArchive archive = ShrinkWrap.create("pojo.jar", JavaArchive.class).addClasses(Pojo.class).addResource(
+ new Asset()
+ {
+ @Override
+ public InputStream openStream()
+ {
+ return new ByteArrayInputStream(
+ ("<?xml version=\"1.0\" encoding=\"UTF-8\"?><deployment xmlns=\"urn:jboss:bean-deployer:2.0\"><bean name=\"Pojo\" class=\""
+ + Pojo.class.getName() + "\" /></deployment>").getBytes());
+ }
+ }, "pojo-jboss-beans.xml");
+
+ // Deploy it
+ try
+ {
+ ejbContainer.deploy(archive);
+ }
+ catch (final EJBDeploymentException e)
+ {
+ TestCase.fail("Could not deploy " + archive.toString() + ": " + e);
+ }
+
+ // Ensure it was deployed
+ final KernelController controller = server.getKernel().getController();
+ final boolean installed = controller.getContextByClass(Pojo.class) != null;
+ Assert.assertTrue("Archive was not deployed", installed);
+
+ // Remove
+ try
+ {
+ ejbContainer.undeploy(archive);
+ }
+ catch (final EJBDeploymentException e)
+ {
+ TestCase.fail("Could not undeploy " + archive.toString() + ": " + e);
+ }
+
+ // Ensure it was removed
+ final boolean removed = controller.getContextByClass(Pojo.class) == null;
+ Assert.assertTrue("Archive was not undeployed", removed);
+
+ }
+
+ /**
+ * Ensures we honor {@link JBossEJBContainer#getContext()}
+ * @throws Exception
+ */
+ @Test
+ public void jndiContextFromEjbContainer() throws Exception
+ {
+
+ // Install the naming server into MC
+ final JavaArchive namingServer = ShrinkWrap.create("namingServer.jar", JavaArchive.class).addResource(
+ "naming-server-jboss-beans.xml");
+ ejbContainer.deploy(namingServer);
+
+ // Get a Context via the EJB Container
+ final Context context = ejbContainer.getContext();
+ Assert.assertNotNull("Got null JNDI context from EJB Container", context);
+
+ // Bind into JNDI
+ final Object objectToBind = new Pojo();
+ final String bindName = "bindName";
+ context.bind(bindName, objectToBind);
+
+ // Ensure we've bound correctly by looking up from JNDI as a round trip
+ Assert.assertSame("Object bound was not as expected", objectToBind, context.lookup(bindName));
+
+ // Undeploy the JNDI server
+ ejbContainer.undeploy(namingServer);
+
+ }
+
+ //-------------------------------------------------------------------------------------||
+ // Functional Methods -----------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ //-------------------------------------------------------------------------------------||
+ // Internal Helper Methods ------------------------------------------------------------||
+ //-------------------------------------------------------------------------------------||
+
+ /**
+ * Test concrete extension of the
+ */
+ private static class TestJBossEJBContainer extends JBossEJBContainerBase
+ {
+
+ TestJBossEJBContainer(final Map<?, ?> properties, final String[] modules, final MCServer server)
+ {
+ super(properties, modules, server);
+ }
+
+ /**
+ * {@inheritDoc}
+ * @see javax.ejb.embeddable.EJBContainer#close()
+ */
+ @Override
+ public void close()
+ {
+ //NOOP
+ }
+
+ }
+
+ /**
+ * A simple test Pojo we'll check for installation
+ *
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ public static class Pojo implements Serializable
+ {
+
+ /**
+ * serialVersionUID
+ */
+ private static final long serialVersionUID = 1L;
+
+ }
+}
Added: projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jndi.properties
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jndi.properties (rev 0)
+++ projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jndi.properties 2010-05-05 21:18:05 UTC (rev 104496)
@@ -0,0 +1,2 @@
+java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
\ No newline at end of file
Added: projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jnpserver.properties
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jnpserver.properties (rev 0)
+++ projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/jnpserver.properties 2010-05-05 21:18:05 UTC (rev 104496)
@@ -0,0 +1,2 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
\ No newline at end of file
Added: projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/naming-server-jboss-beans.xml
===================================================================
--- projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/naming-server-jboss-beans.xml (rev 0)
+++ projects/ejb3/components/embedded/trunk/impl-base/src/test/resources/naming-server-jboss-beans.xml 2010-05-05 21:18:05 UTC (rev 104496)
@@ -0,0 +1,7 @@
+<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="NameServer" class="org.jnp.server.SingletonNamingServer" />
+
+</deployment>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list