|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder
org.codehaus.cargo.container.resin.internal.Resin2xConfigurationBuilder
public class Resin2xConfigurationBuilder
Contains the xml elements used to build a normal or XA compliant DataSource for Resin.
| Field Summary | |
|---|---|
static String |
TRANSACTIONS_WITH_XA_OR_JCA_ONLY
Exception message when trying to configure Transactions when not using an appropriate driver. |
| Constructor Summary | |
|---|---|
Resin2xConfigurationBuilder()
|
|
| Method Summary | |
|---|---|
String |
buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
|
String |
buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
|
String |
buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
|
String |
buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
|
String |
toConfigurationEntry(Resource resource)
Detects the type of the Resource and creates an appropriate configuration. |
protected String |
toResinConfigurationEntry(DataSource ds)
In Resin 2.x DataSources are Resources |
| Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder |
|---|
toConfigurationEntry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TRANSACTIONS_WITH_XA_OR_JCA_ONLY
| Constructor Detail |
|---|
public Resin2xConfigurationBuilder()
| Method Detail |
|---|
public String toConfigurationEntry(Resource resource)
Resource and creates an appropriate configuration.
resource - the Resource you wish to build a configuration entry for.
protected String toResinConfigurationEntry(DataSource ds)
ds - datasource to configure
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithNoTx in class AbstractConfigurationBuilderds - the DataSource with the following state:
DataSource.getJndiLocation() is set to a unique path for the
container.DataSource.getDriverClass() is an implementation of
java.sql.DriverDataSource.getTransactionSupport() is
TransactionSupport.NO_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithLocalTx in class AbstractConfigurationBuilderds - the DataSource with the following state:
DataSource.getJndiLocation() is set to a unique path for the
container.DataSource.getDriverClass() is an implementation of
java.sql.DriverDataSource.getTransactionSupport() is
TransactionSupport.LOCAL_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithXaTx in class AbstractConfigurationBuilderds - the DataSource with the following state:
DataSource.getJndiLocation() is set to a unique path for the
container.DataSource.getDriverClass() is an implementation of
java.sql.DriverDataSource.getTransactionSupport() is
TransactionSupport.XA_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
buildConfigurationEntryForXADataSourceConfiguredDataSource in class AbstractConfigurationBuilderds - the DataSource with the following state:
DataSource.getJndiLocation() is set to a unique path for the
container.DataSource.getConnectionType() is javax.sql.XADataSource
DataSource.getDriverClass() is an implementation of
javax.sql.XADataSourcejavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation(). This container will provide XA support through
the third party implementation specified at DataSource.getDriverClass().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||