This page last changed on Apr 16, 2009 by dandiep.

Definition

A configuration for a container that is already started

Explanation

The container could be executing on the same machine as where Cargo is executing or anywhere else. The important part is that Cargo is accessing that container using a remote access protocol and the container is considered as a black box.

Support Matrix

Java Ant Maven1 Maven2 IntelliJ IDEA Netbeans

Java API

There are different ways of using a runtime configuration:

  • By directly instantiating the configuration matching your container. For example:
[...]
Configuration configuration = new TomcatRuntimeConfiguration();
[...]
  • By using the DefaultConfigurationFactory which automatically maps the right implementation for the container you're using. For example:
[...]
ConfigurationFactory factory = new DefaultConfigurationFactory();
Configuration configuration = factory.createConfiguration("tomcat5x", 
    ContainerType.REMOTE, ConfigurationType.RUNTIME);
[...]

Ant Task

Example:

<cargo containerId="tomcat5x" [...]>
  <configuration type="runtime"/>
  [...]
</cargo>

Maven2 Plugin

Example:

[...]
<container>
  <containerId>tomcat5x</containerId>
  [...]
</container>
<configuration>
  <type>runtime</type>
</configuration>
[...]
Document generated by Confluence on Aug 25, 2010 07:10