|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedJTATransaction
A WebSphere programming model extension to the J2EE JTA support. An
object implementing this interface will be bound, by WebSphere J2EE
containers that support this interface, at
java:comp/websphere/ExtendedJTATransaction
.
Access to this object, when
called from an EJB container, is not restricted to BMTs.
Method Summary | |
---|---|
byte[] |
getGlobalId()
Returns the CosTransactions::PropagationContext::TransIdentity::tid for
the transaction currently associated with the calling thread. |
int |
getLocalId()
Returns a process-unique identifier for the transaction currently associated with the calling thread. |
void |
registerSynchronizationCallback(SynchronizationCallback sync)
Register a SynchronizationCallback SynchronizationCallback
object with the transaction manager. |
void |
registerSynchronizationCallbackForCurrentTran(SynchronizationCallback sync)
Deprecated. This method is deprecated in favor of registerInterposedSynchronization on javax.transaction.TransactionSynchronizationRegistry. |
void |
unRegisterSynchronizationCallback(SynchronizationCallback sync)
Unregister a previously registered SynchronizationCallback
object, sync . |
Method Detail |
---|
byte[] getGlobalId()
CosTransactions::PropagationContext::TransIdentity::tid
for
the transaction currently associated with the calling thread.
tid
in the form of a byte array.
If there is no active transaction currently associated with the thread,
returns null;int getLocalId()
void registerSynchronizationCallback(SynchronizationCallback sync) throws NotSupportedException
SynchronizationCallback
object with the transaction manager.
The registered sync
receives notification of the completion
of each transaction mediated by the transaction manager in the local JVM.
sync
- An object implementing the
SynchronizationCallback
interface.
NotSupportedException
- Thrown if this method is called from an environment
or at a time when the function is not available.void registerSynchronizationCallbackForCurrentTran(SynchronizationCallback sync) throws NotSupportedException
SynchronizationCallback
object for the current transaction.
The registered sync
receives notification of the completion
of the transaction in which it is registered.
sync
- An object implementing the
SynchronizationCallback
interface.
NotSupportedException
- Thrown if this method is called from an environment
or at a time when the function is not available.void unRegisterSynchronizationCallback(SynchronizationCallback sync) throws CallbackNotRegisteredException
SynchronizationCallback
object, sync
. The object so unregistered will receive no further callbacks
from transactions that subsequently complete.
sync
- A previously registered
SynchronizationCallback
object.
CallbackNotRegisteredException
- Thrown if the specific sync
is not registered with the transaction manager.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |