JDBCXAParamsBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Contains the XA-related parameters of a data source.

Configuration parameters for a data source's XA-related behavior are specified using a XA parameters bean.

       
Security rolesThe following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean:
  • Deployer
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.j2ee.descriptor.wl.JDBCXAParamsBean
Factory Methods No factory methods. Instances of this MBean are created automatically.


Attributes

This section describes the following attributes:


KeepLogicalConnOpenOnRelease

Enables WebLogic Server to keep the logical JDBC connection open for a global transaction when the physical XA connection is returned to the connection pool.

Select this option if the XA driver used to create database connections or the DBMS requires that a logical JDBC connection be kept open while transaction processing continues (although the physical XA connection can be returned to the connection pool).

Only applies to data sources that use an XA driver.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean

KeepXaConnTillTxComplete

Enables WebLogic Server to associate the same XA database connection from the connection pool with a global transaction until the transaction completes.

Only applies to connection pools that use an XA driver.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean
Default Valuetrue

NeedTxCtxOnClose

Specifies whether the XA driver requires a distributed transaction context when closing various JDBC objects (result sets, statements, connections, and so forth). Only applies to connection pools that use an XA driver.

When enabled, SQL exceptions that are thrown while closing the JDBC objects without a transaction context will be suppressed.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean

NewXaConnForCommit

Specifies that a dedicated XA connection is used for commit and rollback processing for a global transaction.

Only applies to data sources that use an XA driver.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean

RecoverOnlyOnce

Specifies that the transaction manager calls recover on the resource only once. Only applies to data sources that use an XA driver.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean

ResourceHealthMonitoring

Enables JTA resource health monitoring for an XA data source. When enabled, if an XA resource fails to respond to an XA call within the period specified in MaxXACallMillis, WebLogic Server marks the data source as unhealthy and blocks any further calls to the resource.

This property applies to XA data sources only, and is ignored for data sources that use a non-XA driver.

       
Privileges Read/Write
Typeboolean
Default Valuetrue

RollbackLocalTxUponConnClose

Enables WebLogic Server to call rollback() on the connection before returning the connection to the connection pool.

Enabling this attribute will have a performance impact as the rollback call requires communication with the database server.

This option is deprecated. Its value is currently ignored.

Deprecated. 10.3.4.0

       
Privileges Read/Write
Typeboolean

XaEndOnlyOnce

Specifies that XAResource.end() is called only once for each pending XAResource.start().

This option prevents the XA driver from calling XAResource.end(TMSUSPEND) and XAResource.end(TMSUCCESS) successively. Only applies to data sources that use an XA driver.

Use this setting to work around specific problems with JDBC XA drivers.

       
Privileges Read/Write
Typeboolean

XaRetryDurationSeconds

Determines the duration in seconds for which the transaction manager will perform recover operations on the resource. A value of zero indicates that no retries will be performed.

       
Privileges Read/Write
Typeint
Default Value0

XaRetryIntervalSeconds

The number of seconds between XA retry operations if XARetryDurationSeconds is set to a positive value.

       
Privileges Read/Write
Typeint
Default Value60

XaSetTransactionTimeout

Enables WebLogic Server to set a transaction branch timeout based on the value for XaTransactionTimeout.

When enabled, the WebLogic Server Transaction Manager calls XAResource.setTransactionTimeout() before calling XAResource.start, and passes either the XA Transaction Timeout value or the global transaction timeout.

You may want to set a transaction branch timeout if you have long-running transactions that exceed the default timeout value on the XA resource.

Note: To use this feature, the resource manager (typically, the JDBC driver) must support the javax.transaction.xa.XAResource.setTransactionTimeout() method.

For more information, see:

       
Privileges Read/Write
Typeboolean

XaTransactionTimeout

The number of seconds to set as the transaction branch timeout.

If set, this value is passed as the transaction timeout value in the XAResource.setTransactionTimeout() call on the XA resource manager, typically the JDBC driver.

When this value is set to 0, the WebLogic Server Transaction Manager passes the global WebLogic Server transaction timeout in seconds in the method.

If set, this value should be greater than or equal to the global WebLogic Server transaction timeout.

Note: You must enable XaSetTransactionTimeout to enable setting the transaction branch timeout.

For more information, see:

       
Privileges Read/Write
Typeint
Default Value0


Operations

This section describes the following operations:


    isSet

    Return true if the given property has been explicitly set in this bean.

       
    Operation Name"isSet"
    ParametersObject [] {  propertyName }

    where:

    • propertyName is an object of type java.lang.String that specifies:

      property to check

    SignatureString [] { "java.lang.String" }
    Returns boolean
    Exceptions
    • java.lang.IllegalArgumentException
      IllegalArgumentException if propertyName is not a recognized property

    unSet

    Restore the given property to its default value.

       
    Operation Name"unSet"
    ParametersObject [] {  propertyName }

    where:

    • propertyName is an object of type java.lang.String that specifies:

      property to restore

    SignatureString [] { "java.lang.String" }
    Returns void
    Exceptions
    • java.lang.IllegalArgumentException
      UnsupportedOperationException if called on a runtime implementation.