Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<configuration> elements

Description

Mandatory?

Default value

<type>

Configuration's type. Valid values are standalone, existing and runtime

(thumbs down)

standalone

<home>

For standalone configuration this is the location where Cargo will create the configuration and for existing configuration this is where it is located

(thumbs up)

No default

<properties>

Values to use for various Configuration properties.

 

You can also use the <propertiesFile> element to load configuration properties from a file.

(thumbs down)

Default configuration properties

Note that these configuration properties can also be overriden using Java properties; for example:

Code Block
ant -Dcargo.servlet.port=8082


<deployables>

A list of deployables that are going to be deployed in the container when it is started or when deploy / undeploy is called.

(thumbs down)

No default

<fileConfigs>

List of Configuration files that are to be added to a local container's configuration. Each file is specified using a <fileConfig> element. Cargo token replacement is applied to the files and any existing file is overwritten.

(thumbs down)

No default

<files>

List of files that are to be added to a local container's configuration. Each file is specified using a <file> element.

(thumbs down)

No default

<xmlReplacements>

Values to use for various XML replacements.

(thumbs down)

No default

<users>List of users to be created in container configuration.

(thumbs down)

No default

<datasources>List of datasources to be created in container configuration.

(thumbs down)

No default

Anchor
fileconfig
fileconfig

...

<user> elementsDescriptionMandatory?Default value
<name>User name.

(thumbs up)

No default
<password>User password.

(thumbs down)

No default
<roles>

List of roles which should be assigned to user.

Example of roles configuration:

Code Block
languagexml
<roles>
    <role>cargo</role>
</roles>


(thumbs down)

No default

Anchor
datasource
datasource

<datasource> elementsDescriptionMandatory?Default value
<jndiName>JNDI name where to find this DataSource.

(thumbs up)

No default




Anchor
daemon
daemon

Daemon configuration

...