Package org.jboss.jbossts.star.client
Class SRAParticipant
java.lang.Object
org.jboss.jbossts.star.client.SRAParticipant
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
commitWork
(String atId, String sraId) protected String
getCompensatorData
(String activityId) protected String
Get the SRA context of the currently running method.jakarta.ws.rs.core.Response
void
jakarta.ws.rs.core.Response
prepareWork
(String sraId) jakarta.ws.rs.core.Response
rollbackWork
(String sraId) jakarta.ws.rs.core.Response
protected abstract SRAStatus
updateParticipantState
(SRAStatus status, String activityId)
-
Constructor Details
-
SRAParticipant
public SRAParticipant()
-
-
Method Details
-
updateParticipantState
-
getCompensatorData
-
getCurrentActivityId
Get the SRA context of the currently running method. Note that @HeaderParam(SRA_HTTP_HEADER) does not match the header (done't know why) so we the httpRequest- Returns:
- the SRA context of the currently running method
-
getTerminator
@HEAD @Path("/participant") @Produces("application/json") public jakarta.ws.rs.core.Response getTerminator() -
commitWork
@PUT @Path("/commit/{txid}") @Produces("application/json") public jakarta.ws.rs.core.Response commitWork(@HeaderParam("Short-Running-Action") String atId, @PathParam("txid") String sraId) throws jakarta.ws.rs.NotFoundException - Throws:
jakarta.ws.rs.NotFoundException
-
prepareWork
@PUT @Path("/prepare/{txid}") @Produces("application/json") public jakarta.ws.rs.core.Response prepareWork(@PathParam("txid") String sraId) throws jakarta.ws.rs.NotFoundException - Throws:
jakarta.ws.rs.NotFoundException
-
rollbackWork
@PUT @Path("/rollback/{txid}") @Produces("application/json") public jakarta.ws.rs.core.Response rollbackWork(@PathParam("txid") String sraId) throws jakarta.ws.rs.NotFoundException - Throws:
jakarta.ws.rs.NotFoundException
-
status
@GET @Path("/status/{txid}") @Produces("application/json") public jakarta.ws.rs.core.Response status(@PathParam("txid") String sraId) throws jakarta.ws.rs.NotFoundException - Throws:
jakarta.ws.rs.NotFoundException
-
postConstruct
@PostConstruct public void postConstruct()
-