JBoss Community Archive (Read Only)

Arquillian Old

JBoss AS 6.0 - Embedded

A DeployableContainer implementation that can run and connect to a embedded(same JVM) JBoss AS 6.0 instance. This implementation has lifecycle support, so the container will be started and stopped as part of the test run.

Container Injection Support Matrix

@EJB

@EJB (no-interface)

@Inject (CDI)

@Inject (MC)

@PersistenceContext @PersistenceUnit

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

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

images/author/download/attachments/23822407/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.

bindAddress

String

localhost

The Address the server should bind to.

Example of Maven profile setup

<profile>
	<id>jbossas-embedded-6</id>
	<dependencies>
		<dependency>
			<groupId>org.jboss.arquillian.container</groupId>
			<artifactId>arquillian-jbossas-embedded-6</artifactId>
			<version>1.0.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.jboss.jbossas</groupId>
			<artifactId>jboss-as-depchain</artifactId>
			<version>6.0.0.Final</version>
			<type>pom</type>
		</dependency>
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.jboss.jbossas</groupId>
				<artifactId>jboss-as-depchain</artifactId>
				<version>6.0.0.Final</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<additionalClasspathElements>
						<additionalClasspathElement>${env.JBOSS_HOME}/client/jbossws-native-client.jar</additionalClasspathElement>
						<!--
							Because jbossweb.sar contains shared web.xml, which must be
							visible from same CL as TomcatDeployer.class.getClassLoader
						-->
						<additionalClasspathElement>${env.JBOSS_HOME}/server/default/deploy/jbossweb.sar</additionalClasspathElement>
					</additionalClasspathElements>

					<redirectTestOutputToFile>true</redirectTestOutputToFile>
					<trimStackTrace>false</trimStackTrace>
					<printSummary>true</printSummary>
					<forkMode>once</forkMode>

					<!--
						MaxPermSize Required to bump the space for relective data like
						classes, methods, etc. EMB-41. Endorsed required for things like
						WS support (EMB-61)
					-->
					<argLine>-Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Djava.endorsed.dirs=${env.JBOSS_HOME}/lib/endorsed -Djboss.home=${env.JBOSS_HOME} -Djboss.boot.server.log.dir=${env.JBOSS_HOME}</argLine>
				</configuration>
			</plugin>
		</plugins>
	</build>
</profile>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 12:19:24 UTC, last content change 2011-04-16 16:27:42 UTC.