|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.jca.TransactionInflowHelper
public class TransactionInflowHelper
A helper class to handle JCA transaction inflow.
An instance of this class can be constructed at
any time; it will delegate to the underlying
transaction service to process incoming JCA
transactions. Note: this class will only work
if transactions across multiple VMs are supported
by your license!
Use this class to implement the JCA transaction inflow
for your application server.
This class is a low-level
integration class, intended to facilitate integration in JCA-compliant J2EE servers.
In particular, J2EE vendors can use this class in their implementation of the
JCA 1.5 WorkManager. In addition, this class provides the necessary XATerminator functionality.
This class is unlikely to be relevant to normal users of the transaction service.
Constructor Summary | |
---|---|
TransactionInflowHelper()
|
Method Summary | |
---|---|
boolean |
getAutoStartup()
Check the auto startup property. |
XATerminatorImp |
getXATerminator()
Retrieve the XATerminator implementation. |
InboundTransaction |
importTransactionWithXid(Xid xid,
long timeout,
boolean commitOnHeuristic)
Import the transaction with the given Xid. |
void |
setAutoStartup(boolean value)
Set the autostartup property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionInflowHelper()
Method Detail |
---|
public void setAutoStartup(boolean value)
value
- If true, then the transaction service
will start up if not yet running. Otherwise,
the transaction service needs to be started
before this class will work.public boolean getAutoStartup()
public InboundTransaction importTransactionWithXid(Xid xid, long timeout, boolean commitOnHeuristic)
xid
- The Xid value for which a transaction should be imported (created).timeout
- The timeout in milliseconds before active transactions
are automatically rolled back.commitOnHeuristic
- If true, heuristic timeouts will cause heuristic commit.
Otherwise, heuristic timeouts will cause heuristic rollback.
public XATerminatorImp getXATerminator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |