]
Michael Musgrove updated JBTM-3187:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Add MessageBodyWriter for ParticipantStatus and
application/octet-stream media type
-----------------------------------------------------------------------------------
Key: JBTM-3187
URL:
https://issues.jboss.org/browse/JBTM-3187
Project: JBoss Transaction Manager
Issue Type: Enhancement
Components: LRA
Affects Versions: 5.9.8.Final
Reporter: Martin Stefanko
Assignee: Martin Stefanko
Priority: Major
application/octet-stream is the default media type in RESTEasy which is used when
{{@Produces}} value is not specified. We are always expecting {{String}} values from LRA
participant methods so instead of requiring {{(a)Produces(MediaType.TEXT_PLAIN)}} on each
{{@Compensate}}, {{@Complete}}, {{@Status}}, etc. methods we can include
{{MessageBodyWriter<ParticipantStatus>}} implementation in {{narayana-lra}} module
which will just transform {{ParticipantStatus}} value to {{String}}.