[
https://issues.apache.org/activemq/browse/CAMEL-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45680#action_45680
]
Claus Ibsen commented on CAMEL-585:
-----------------------------------
BTW: The ProducerTemplate has been improved so it will throw the caused
exception. As Bruce also pointed out.
I am looking into Bruces ideas.
This is to be added:
- if the exchanged failed and a FAULT message was set, then that is used for
reply
Still considering:
- if the exchanged failed and an Exception was set, then that is used for reply
(as a javax.jms.ObjectMessage).
Maybe we can add a flag to enable/disable this behaviour. To send exception as
objects over the wire in the body. If not then we can send the message as a
toString and maybe add a JMSHeader to indicate the failure.
Any thoughts?
> JMS Component - Look at Bruces investigations (message transfer using JMS and
> exceptions)
> -----------------------------------------------------------------------------------------
>
> Key: CAMEL-585
> URL: https://issues.apache.org/activemq/browse/CAMEL-585
> Project: Apache Camel
> Issue Type: Task
> Components: camel-jms
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.5.0
>
>
> Bruce Elmore have investigated and do think that Camel has a bug in the JMS
> compoenent regarding how exceptions is received from the JMS Producer (when
> receiving the reply).
> If the reply was a thrown exception from the other part, this is not
> currently set as an exception on the build Exchange but on the body as is.
> Pitfall: If an exception should be deserialized and set as an exception
> object on the created exception there could be problems with that the
> exception class does not exists on the receive side.
> Would be great to get James and other core comitters opinion on this matter,
> as it's maybe also a more general pattern for other components as well.
> This ticket is created to not forget about the postings on the user forum:
> nabble: (Handle Bean Exception)
> http://www.nabble.com/Handling-Bean-exceptions-td17671948s22882.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.