Claus Ibsen created CAMEL-26506:
-----------------------------------

             Summary: camel-jms / camel-sjms - transferException reply together 
with a rollback, and the sjms consumer keeps a StreamMessage raw
                 Key: CAMEL-26506
                 URL: https://issues.apache.org/jira/browse/CAMEL-26506
             Project: Camel
          Issue Type: Bug
          Components: camel-jms, camel-sjms
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen


Two finds from CAMEL-26152 (PR #28925), not fixed there.

# With transferException=true the consumer looks up the failure with 
getException(RuntimeCamelException.class), which walks the causes. It can then 
send the exception as the reply and also roll back the transacted session, so 
the reply is sent and the request is redelivered. camel-jms and camel-sjms both 
do this.
# The camel-sjms consumer gives the raw jakarta.jms.StreamMessage as the body, 
where camel-jms maps it to an InputStream. So a round trip of a stream body 
over sjms does not give the bytes back.

Needs a closer look before fixing.

_Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to