Package com.arjuna.wst11.stub
Class ParticipantStub
java.lang.Object
com.arjuna.wst11.stub.ParticipantStub
- All Implemented Interfaces:
Participant
,PersistableParticipant
- Direct Known Subclasses:
Durable2PCStub
,Volatile2PCStub
-
Constructor Summary
ConstructorDescriptionParticipantStub
(String id, boolean durable, jakarta.xml.ws.wsaddressing.W3CEndpointReference twoPCParticipant) -
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.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.boolean
Restore the state of the particpant from the specified input object stream.void
rollback()
The participant should undo the work that it controls.boolean
Save the state of the particpant to the specified input object stream.void
unknown()
During recovery the participant can enquire as to the status of the transaction it was registered with.
-
Constructor Details
-
Method Details
-
prepare
Description copied from interface:Participant
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
Description copied from interface:Participant
The participant should make permanent the work that it controls.- Specified by:
commit
in interfaceParticipant
- Throws:
WrongStateException
SystemException
-
rollback
Description copied from interface:Participant
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
Description copied from interface:Participant
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
Description copied from interface:Participant
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
-
saveState
Description copied from interface:PersistableParticipant
Save the state of the particpant to the specified input object stream.- Specified by:
saveState
in interfacePersistableParticipant
- Parameters:
oos
- The output output stream.- Returns:
- true if persisted, false otherwise.
-
restoreState
Description copied from interface:PersistableParticipant
Restore the state of the particpant from the specified input object stream.- Specified by:
restoreState
in interfacePersistableParticipant
- Parameters:
ios
- The Input object stream.- Returns:
- true if restored, false otherwise.
-