JBoss Community Archive (Read Only)

Arquillian Old

JBoss AS 7.0 - Managed

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

Container Injection Support Matrix

@EJB

@EJB (no-interface)

@Inject (CDI)

@Inject (MC)

@PersistenceContext @PersistenceUnit

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

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

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

 

 

The JBossAS7 container also support OSGi Bundle / Context injection in OSGi modules and Module Contexts/ServiceController when developing Modules (only when using the jmx-as7 protocol).

Configuration

Default Protocol: jmx-as7

Container Configuration Options

Name

Type

Default

Description

jbossHome

String

$JBOSS_HOME

The JBoss configuration to start.

javaHome

String

$JAVA_HOME

The Java runtime to use to start the server.

modulePath

String

$module.path

The location of the module repository.

javaVmArguments

String

-Xmx512m -XX:MaxPermSize=128m

JVM arguments used to start the server.

startupTimeoutInSeconds

int

30

Time to wait before throwing Exception on server startup.

outputToConsole

boolean

true

Should the server startup console log be piped to the console

serverConfig

String

standalone.xml

Which server configuration file to startup with

managementAddress

String

127.0.0.1

The ip address of the running server instances manage interface

managementPort

int

9999

The management port for deployment

Example of Maven profile setup

<profile>
    <id>jbossas-managed-7</id>
    <dependencies>
        <dependency>
            <groupId>org.jboss.spec</groupId>
            <artifactId>jboss-javaee-6.0</artifactId>
            <version>1.0.0.Final</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.as</groupId>
            <artifactId>jboss-as-arquillian-container-managed</artifactId>
            <version>7.0.2.Final</version>
        </dependency>
    </dependencies>
</profile>

For JBoss AS 7.0.0.Final, you need to configure the jmx protocol used. Example:

<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://jboss.org/schema/arquillian"
	xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

    <container qualifier="jboss7" default="true">
        <protocol type="jmx-as7">
            <property name="executionType">REMOTE</property>
        </protocol>
    </container>
</arquillian>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 12:19:31 UTC, last content change 2011-10-18 16:51:56 UTC.