jbossas/jboss-as — pull request #1989 by aslakknutsen (2012-04-05 18:11:28+00:00)
Title: AS7-2203 Add Arquillian support for Managed/Remote Domain Server

The DomainServer Container will register all ServerGroups and Servers within those groups as seperate Containers in the Arquillian Registry.

Currently only supports the Servlet 3.0 Protocol.

General usecase:

* deploy and undeploy to ServerGroups
* start and stop Servers

Domain Container
----------------

* support operations start/stop
* default container mode: suite

* configuration
* containerNameMap: used to rename the container names seen by Arquillian
* main-server-group=crm-system
* containerModeMap: used to change the container mode used by Arquillian
* host:server-one=manual

ServerGroup Containers
----------------------

* support operations start/stop/deploy/undeploy
* default container mode: suite
* default container name: the server group name withing the domain

All operations on a group will be reflected onto the Server instances.

A ServerGroup is always registered as Started, which means it needs to be Stopped before Arquillian allow
the 'underlying' group to be started.

Server Containers
-----------------

* support operations start/stop
* attempts to deploy/undeploy on a Server Container results in UnSupportedOpperation
* default container mode: custom
* default container name: 'host-name:server-name'

A Server is registered based on it's current state within the Domain, either Started or Stopped. The ContainerController API support cc.isStarted(name)