Versions Compared

Key

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

...

Property

Purpose

Valid Values

DataSource

Transactional DataSource

XA DataSource

c.d.jndi

the The path to this datasource in jndiJNDI

any Any jndi path, like like jdbc/userds

mandatory

mandatory

mandatory

c.d.driver

the The implementation class

ex. my.Driver

mandatory: must implement implement java.sql.Driver

mandatory: must implement implement java.sql.Driver

mandatory: must implement implement javax.sql.XADataSource

c.d.properties

properties Properties to pass to the driver

semiSemi-colon delimited string

optional

optional

mandatory

c.d.url

url URL for the the java.sql.Driver

ex. jdbc:host:port/mydb

mandatory

mandatory

optional

c.d.type

Determines the type of the driver

defaults to 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

what Determines transaction support type

LOCAL_TRANSACTION or 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 Must contain no path-like characters

optional

optional

optional

c.d.username

username Username to connect to the dbdatabase

stringString

optional

optional

optional

c.d.password

password for the username

stringPassword to connect to the database

String

optional

optional

optional

Resource properties

...

Here are the properties that are valid for this:

  • Note that that c.r means means cargo.resource

Property

Purpose

Valid Values

Mandatory?

c.r.name

the The path to this datasource in jndiJNDI

any Any jndi path, like like resource/apple

mandatory

c.r.type

Interface of the object

Any valid interface

mandatory

c.r.class

the The implementation class

Any valid class implementing the interface

mandatory

c.r.parameters

properties Properties to to populate the class with

semiSemi-colon delimited string; must correspond to setters

optional

...

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

...