Martin Stefanko created JBTM-3187:
-------------------------------------
Summary: 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
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}}.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)