Skip navigation links

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

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.j2ee.descriptor.wl
Interface TransactionParamsBean

All Superinterfaces:
SettableBean

public interface TransactionParamsBean
extends SettableBean

The transaction parameters bean controls how transactions are handled.


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

 

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

setTransactionTimeout

void setTransactionTimeout(long transactionTimeout)
                           throws IllegalArgumentException

Sets the value of the TransactionTimeout attribute.

Parameters:
transactionTimeout -
Throws:
IllegalArgumentException
See Also:
TransactionParamsBean.getTransactionTimeout()

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

setXAConnectionFactoryEnabled

void setXAConnectionFactoryEnabled(boolean xaConnectionFactoryEnabled)
                                   throws IllegalArgumentException

Sets the value of the XAConnectionFactoryEnabled attibute.

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

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09