|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface TransactionParamsBean
The transaction parameters bean controls how transactions are handled.
| 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 |
|---|
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.
void setTransactionTimeout(long transactionTimeout)
throws IllegalArgumentException
Sets the value of the TransactionTimeout attribute.
transactionTimeout -
IllegalArgumentExceptionTransactionParamsBean.getTransactionTimeout()
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.
void setXAConnectionFactoryEnabled(boolean xaConnectionFactoryEnabled)
throws IllegalArgumentException
Sets the value of the XAConnectionFactoryEnabled attibute.
xaConnectionFactoryEnabled -
IllegalArgumentExceptionTransactionParamsBean.isXAConnectionFactoryEnabled()
|
Copyright 1996, 2014, 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.3) Part Number E41849-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||