JBoss Community Archive (Read Only)

Arquillian

JBoss AS 6.0 - Remote

A DeployableContainer implementation that can connect and run against a remote(different JVM, different machine) running JBoss AS 6.0 instance.
This implementation has no lifecycle support, so it can not be started or stopped.

Container Injection Support Matrix

@EJB

@EJB (no-interface)

@Inject (CDI)

@Inject (MC)

@PersistenceContext @PersistenceUnit

images/author/download/attachments/917706/fact_good.png

images/author/download/attachments/917706/fact_good.png

images/author/download/attachments/917706/fact_good.png

 

 

Configuration

Default Protocol: Servlet 3.0

Container Configuration Options

Name

Type

Default

Description

profileName

String

default

ProfileService profileKey. Used to load the correct profile into the DeploymentManager.

providerUrl

String

jnp://localhost:1099

The JNDI connection URL.

urlPkgPrefix

String

org.jboss.naming:org.jnp.interfaces

The JNDI package prefix.

contextFactory

String

org.jnp.interfaces.NamingContextFactory

JNDI Context factory class name.

Example of Maven profile setup

<profile>
	<id>jbossas-remote-6</id>
	<dependencies>
		<dependency>
			<groupId>org.jboss.arquillian.container</groupId>
			<artifactId>arquillian-jbossas-remote-6</artifactId>
			<version>1.0.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.jboss.jbossas</groupId>
			<artifactId>jboss-as-client</artifactId>
			<version>6.0.0.Final</version>
			<type>pom</type>
		</dependency>
	</dependencies>
</profile>

Additionally, according to https://community.jboss.org/en/arquillian/blog/2011/04/05/trim-your-dependencies-when-using-jboss-as-6-remote this is a much better profile for JBoss 6 Remote:

<profile>
    <id>jbossas-remote-6</id>
    <dependencies>
	<dependency>
	    <groupId>org.jboss.arquillian.container</groupId>
	    <artifactId>arquillian-jbossas-remote-6</artifactId>
	    <version>1.0.0-SNAPSHOT</version>
	</dependency>
        <dependency>
            <groupId>org.jboss.jbossas</groupId>
            <artifactId>jboss-as-profileservice-client</artifactId>
            <version>6.0.0.Final</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.jboss.deployers</groupId>
            <artifactId>jboss-deployers-client-spi</artifactId>
            <version>2.2.0.M2</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</profile>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 09:40:47 UTC, last content change 2013-10-30 16:20:57 UTC.