Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

Container support

Here are the configurations that currently support DataSource or Resource configuration:

Icon

This page / section has been automatically generated by Cargo's build. Do not edit it directly as it'll be overwritten next time it's generated again.

Container

Configuration

Resource

DataSource

Transactional DataSource

XA DataSource

Geronimo 2.x

o.c.c.c.geronimo.Geronimo2xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

Geronimo 3.x

o.c.c.c.geronimo.Geronimo3xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

Glassfish 3.x

o.c.c.c.glassfish.GlassFish3xStandaloneLocalConfiguration

(tick)

(tick)

(tick)

(error)

Glassfish 4.x

o.c.c.c.glassfish.GlassFish4xStandaloneLocalConfiguration

(tick)

(tick)

(tick)

(error)

JBoss 3.x

o.c.c.c.jboss.JBossStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 4.x

o.c.c.c.jboss.JBossStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 4.2.x

o.c.c.c.jboss.JBoss42xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 5.x

o.c.c.c.jboss.JBoss5xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 5.1.x

o.c.c.c.jboss.JBoss51xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 6.x

o.c.c.c.jboss.JBoss6xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 6.1.x

o.c.c.c.jboss.JBoss6xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 7.x

o.c.c.c.jboss.JBoss7xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 7.1.x

o.c.c.c.jboss.JBoss71xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 7.2.x

o.c.c.c.jboss.JBoss72xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 7.3.x

o.c.c.c.jboss.JBoss73xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JBoss 7.4.x

o.c.c.c.jboss.JBoss73xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

Jetty 7.x

o.c.c.c.jetty.Jetty7xStandaloneLocalConfiguration

(error)

(tick)

(error)

(error)

Jetty 8.x

o.c.c.c.jetty.Jetty8xStandaloneLocalConfiguration

(error)

(tick)

(error)

(error)

Jetty 9.x

o.c.c.c.jetty.Jetty9xStandaloneLocalConfiguration

(error)

(tick)

(error)

(error)

JOnAS 4.x

o.c.c.c.jonas.Jonas4xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JOnAS 5.x

o.c.c.c.jonas.Jonas5xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

JRun 4.x

o.c.c.c.jrun.JRun4xExistingLocalConfiguration

(tick)

(tick)

(tick)

(tick)

Oc4J 9.x

o.c.c.c.orion.Oc4j9xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

Oc4j 10.x

o.c.c.c.orion.Oc4j10xExistingLocalConfiguration

(error)

(tick)

(tick)

(tick)

Resin 2.x

o.c.c.c.resin.Resin2xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Resin 3.x

o.c.c.c.resin.Resin3xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Resin 3.1.x

o.c.c.c.resin.Resin31xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Resin 4.x

o.c.c.c.resin.Resin4xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Tomcat 4.x

o.c.c.c.tomcat.Tomcat4xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Tomcat 5.x

o.c.c.c.tomcat.Tomcat5xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Tomcat 6.x

o.c.c.c.tomcat.Tomcat6xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Tomcat 7.x

o.c.c.c.tomcat.Tomcat7xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

Tomcat 8.x

o.c.c.c.tomcat.Tomcat8xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

TomEE 1.x

o.c.c.c.tomee.Tomee1xStandaloneLocalConfiguration

(tick)

(tick)

(error)

(error)

WebLogic 8.x

o.c.c.c.weblogic.WebLogic8xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WebLogic 9.x

o.c.c.c.weblogic.WebLogic9xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WebLogic 10.x

o.c.c.c.weblogic.WebLogic10xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WebLogic 10.3.x

o.c.c.c.weblogic.WebLogic103xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WebLogic 12.x

o.c.c.c.weblogic.WebLogic12xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WebLogic 12.1.x

o.c.c.c.weblogic.WebLogic121xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(tick)

WildFly 8.x

o.c.c.c.wildfly.WildFly8xStandaloneLocalConfiguration

(error)

(tick)

(tick)

(error)

Notes:

  • Datasources on the Jetty container use the c3p0 datasource pool.
  • JOnAS handles transactions for datasources using its jtm service.

DataSource properties

DataSources are added through pipe-delimited configuration properties that starts with cargo.datasource.datasource. Example:

Here are the properties that are valid for this:

  • Note that c.d means cargo.datasource
  • Note that if you specify a property marked do not set you will get a CargoException.

Property

Purpose

Valid Values

DataSource

Transactional DataSource

XA DataSource

c.d.jndi

The path to this datasource in JNDI

Any jndi path, like jdbc/userds

mandatory

mandatory

mandatory

c.d.driver

The implementation class

ex. my.Driver

mandatory: must implement java.sql.Driver

mandatory: must implement java.sql.Driver

mandatory: must implement javax.sql.XADataSource

c.d.properties

Properties to pass to the driver

Semi-colon delimited string

optional

optional

mandatory

c.d.url

URL for the java.sql.Driver

ex. jdbc:host:port/mydb

mandatory

mandatory

optional

c.d.type

Determines the type of the driver

Defaults to java.sql.Driver, only set if you want to use a javax.sql.XADataSource

do not set

do not set

javax.sql.XADataSource

c.d.transactionsupport

Determines transaction support type

LOCAL_TRANSACTION or XA_TRANSACTION

do not set

mandatory

unset defaults to only valid option: XA_TRANSACTION

c.d.id

Identifier used in configuration files to reference this datasource

Must contain no path-like characters

optional

optional

optional

c.d.username

Username to connect to the database

String

optional

optional

optional

c.d.password

Password to connect to the database

String

optional

optional

optional

Resource properties

Resources are added through pipe-delimited configuration properties that starts with cargo.resource.resource. Example:

Here are the properties that are valid for this:

  • Note that c.r means cargo.resource

Property

Purpose

Valid Values

Mandatory?

c.r.name

The path to this datasource in JNDI

Any jndi path, like resource/apple

mandatory

c.r.type

Interface of the object

Any valid interface

mandatory

c.r.class

The implementation class

Any valid class implementing the interface

mandatory

c.r.parameters

Properties to to populate the class with

Semi-colon delimited string; must correspond to setters

optional

Examples

Users of the Java API can take a look at the following classes as example:

Users of the Maven2/Maven3 plugin can use the Maven2 Archetype showing datasource support. Please read: Datasource Definition Archetype.

  • No labels