Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.j2ee.descriptor.wl
Interface TransactionParamsBean

All Superinterfaces:
SettableBean

public interface TransactionParamsBean
extends SettableBean

The transaction parameters bean controls how transactions are handled.

Access limited to the following security roles:
Deployer

Method Summary
 long getTransactionTimeout()
          The timeout value (in seconds) for all transactions on connections created with this connection factory.
 boolean isXAConnectionFactoryEnabled()
          Indicates whether a XA queue or XA topic connection factory is returned, instead of a queue or topic connection factory.
 void setTransactionTimeout(long transactionTimeout)
          Sets the value of the TransactionTimeout attribute.
 void setXAConnectionFactoryEnabled(boolean xaConnectionFactoryEnabled)
          Sets the value of the XAConnectionFactoryEnabled attibute.
 
Methods inherited from interface weblogic.descriptor.SettableBean
isSet, unSet
 

Method Detail

getTransactionTimeout

long getTransactionTimeout()

The timeout value (in seconds) for all transactions on connections created with this connection factory.

If a transacted session is still active after the timeout has elapsed, the transaction is rolled back. A value of 0 indicates that the default value will be used. If you have long-running transactions, you might want to adjust the value of this attribute to allow transactions to complete.

Returns:
The transactionTimeout value
Changes take effect after you redeploy the module or restart the server.
Default Value:
3600

setTransactionTimeout

void setTransactionTimeout(long transactionTimeout)
                           throws IllegalArgumentException

Sets the value of the TransactionTimeout attribute.

Parameters:
transactionTimeout -
Throws:
IllegalArgumentException
See Also:
TransactionParamsBean.getTransactionTimeout()
Changes take effect after you redeploy the module or restart the server.
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

isXAConnectionFactoryEnabled

boolean isXAConnectionFactoryEnabled()

Indicates whether a XA queue or XA topic connection factory is returned, instead of a queue or topic connection factory. An XA connection factory can be used to create an XAConnection, which in turn may be used to create an XASession, which in turn may be used to obtain an XAResource for use inside a transaction manager.

In addition, this attribute indicates whether or not a connection factory creates sessions that are JTA aware. If true, the associated message producers and message consumers look into the running thread for a transaction context. Otherwise, the current JTA transaction will be ignored.

Note: Transacted sessions ignore the current threads transaction context in favor of their own internal transaction, regardless of the setting. This setting only affects non-transacted sessions.

Returns:
The xAConnectionFactoryEnabled value
Changes take effect after you redeploy the module or restart the server.
Default Value:
false

setXAConnectionFactoryEnabled

void setXAConnectionFactoryEnabled(boolean xaConnectionFactoryEnabled)
                                   throws IllegalArgumentException

Sets the value of the XAConnectionFactoryEnabled attibute.

Parameters:
xaConnectionFactoryEnabled -
Throws:
IllegalArgumentException
See Also:
TransactionParamsBean.isXAConnectionFactoryEnabled()

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01