use of org.jboss.narayana.rest.integration.api.ParticipantException in project narayana by jbosstm.
the class ParticipantsManagerImpl method enlistVolatileParticipant.
private void enlistVolatileParticipant(final String participantUrl, final String volatileParticipantEnlistmentURL) {
final StringBuilder linkHeader = new StringBuilder();
linkHeader.append("<").append(participantUrl).append(">; rel=\"").append(TxLinkNames.VOLATILE_PARTICIPANT).append("\"");
final String participantLinkHeader = linkHeader.toString();
try {
new TxSupport().enlistVolatileParticipant(volatileParticipantEnlistmentURL, participantLinkHeader);
} catch (HttpResponseException e) {
throw new ParticipantException("Failed to enlist volatile participant", e);
}
}
Aggregations