Class BridgeDurableParticipant
java.lang.Object
org.jboss.jbossts.txbridge.inbound.BridgeDurableParticipant
- All Implemented Interfaces:
Durable2PCParticipant
,Participant
,Serializable
Provides method call mapping between WS-AT Durable Participant interface
and an underlying JTA subtransaction coordinator.
- Author:
- jonathan.halliday@redhat.com, 2007-04-30
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
The participant should make permanent the work that it controls.void
error()
During recovery the participant can enquire as to the status of the transaction it was registered with.getXid()
boolean
prepare()
Perform any work necessary to allow it to either commit or rollback the work performed by the Web service under the scope of the transaction.void
rollback()
The participant should undo the work that it controls.void
unknown()
During recovery the participant can enquire as to the status of the transaction it was registered with.
-
Field Details
-
TYPE_IDENTIFIER
- See Also:
-
XARESOURCE_FORMAT_ID
public static final int XARESOURCE_FORMAT_ID- See Also:
-
-
Method Details
-
prepare
Perform any work necessary to allow it to either commit or rollback the work performed by the Web service under the scope of the transaction. The implementation is free to do whatever it needs to in order to fulfill the implicit contract between it and the coordinator.- Specified by:
prepare
in interfaceParticipant
- Returns:
- an indication of whether it can prepare or not.
- Throws:
WrongStateException
SystemException
- See Also:
-
commit
The participant should make permanent the work that it controls.- Specified by:
commit
in interfaceParticipant
- Throws:
WrongStateException
SystemException
-
rollback
The participant should undo the work that it controls. The participant will then return an indication of whether or not it succeeded..- Specified by:
rollback
in interfaceParticipant
- Throws:
WrongStateException
SystemException
-
unknown
During recovery the participant can enquire as to the status of the transaction it was registered with. If that transaction is no longer available (has rolled back) then this operation will be invoked by the coordination service.- Specified by:
unknown
in interfaceParticipant
- Throws:
SystemException
-
error
During recovery the participant can enquire as to the status of the transaction it was registered with. If an error occurs (e.g., the transaction service is unavailable) then this operation will be invoked.- Specified by:
error
in interfaceParticipant
- Throws:
SystemException
-
isAwaitingRecovery
public boolean isAwaitingRecovery() -
getXid
-