[jira] Created: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

View: New views
5 Messages — Rating Filter:   Alert me  

[jira] Created: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Creating a transacted pipeline with custom error handling is difficult
----------------------------------------------------------------------

                 Key: CAMEL-2059
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2059
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.0.0
            Reporter: Chris Purcell
             Fix For: Future


When trying to add error logging to a transacted pipeline, I discovered the following issues:

(1) onException/onCompletion do not work in a transacted route
(2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
(3) custom error handlers interact very awkwardly with transacted routes

I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.

I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/CAMEL-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Purcell updated CAMEL-2059:
---------------------------------

    Attachment: CamelTransactionsAndErrorHandling.tgz

> Creating a transacted pipeline with custom error handling is difficult
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2059
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2059
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Chris Purcell
>             Fix For: Future
>
>         Attachments: CamelTransactionsAndErrorHandling.tgz
>
>
> When trying to add error logging to a transacted pipeline, I discovered the following issues:
> (1) onException/onCompletion do not work in a transacted route
> (2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
> (3) custom error handlers interact very awkwardly with transacted routes
> I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.
> I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/CAMEL-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Purcell updated CAMEL-2059:
---------------------------------

    Description:
When trying to add error logging to a transacted pipeline, I discovered the following issues:

(1) onException/onCompletion do not work in a transacted route
(2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
(3) custom error handlers interact very awkwardly with transacted routes (specifically, a non-transacted error handler will not work at all on a transacted route)

I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.

I suggest that, if the above issues are not corrected (especially 2+3, which may not be route designs that it is desired to support), they should trigger errors in the corresponding pipeline.

I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

  was:
When trying to add error logging to a transacted pipeline, I discovered the following issues:

(1) onException/onCompletion do not work in a transacted route
(2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
(3) custom error handlers interact very awkwardly with transacted routes

I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.

I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.


> Creating a transacted pipeline with custom error handling is difficult
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2059
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2059
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Chris Purcell
>             Fix For: Future
>
>         Attachments: CamelTransactionsAndErrorHandling.tgz
>
>
> When trying to add error logging to a transacted pipeline, I discovered the following issues:
> (1) onException/onCompletion do not work in a transacted route
> (2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
> (3) custom error handlers interact very awkwardly with transacted routes (specifically, a non-transacted error handler will not work at all on a transacted route)
> I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.
> I suggest that, if the above issues are not corrected (especially 2+3, which may not be route designs that it is desired to support), they should trigger errors in the corresponding pipeline.
> I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/activemq/browse/CAMEL-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55197#action_55197 ]

Claus Ibsen commented on CAMEL-2059:
------------------------------------

Hi Chris

I will take a look at this when I am writing the transaction chapter for my book Camel in Action. It is in fact the next chapter on the roadmap so it wont be that long.

> Creating a transacted pipeline with custom error handling is difficult
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2059
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2059
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Chris Purcell
>             Fix For: Future
>
>         Attachments: CamelTransactionsAndErrorHandling.tgz
>
>
> When trying to add error logging to a transacted pipeline, I discovered the following issues:
> (1) onException/onCompletion do not work in a transacted route
> (2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
> (3) custom error handlers interact very awkwardly with transacted routes (specifically, a non-transacted error handler will not work at all on a transacted route)
> I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.
> I suggest that, if the above issues are not corrected (especially 2+3, which may not be route designs that it is desired to support), they should trigger errors in the corresponding pipeline.
> I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2059) Creating a transacted pipeline with custom error handling is difficult

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/activemq/browse/CAMEL-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-2059:
----------------------------------

    Assignee: Claus Ibsen

> Creating a transacted pipeline with custom error handling is difficult
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2059
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2059
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Chris Purcell
>            Assignee: Claus Ibsen
>             Fix For: Future
>
>         Attachments: CamelTransactionsAndErrorHandling.tgz
>
>
> When trying to add error logging to a transacted pipeline, I discovered the following issues:
> (1) onException/onCompletion do not work in a transacted route
> (2) if the transacted tag is not the first element in the route, all the endpoints above it will be silently ignored
> (3) custom error handlers interact very awkwardly with transacted routes (specifically, a non-transacted error handler will not work at all on a transacted route)
> I was able to solve my problem using doTry/doCatch; this may be a good candidate for adding to the docs.
> I suggest that, if the above issues are not corrected (especially 2+3, which may not be route designs that it is desired to support), they should trigger errors in the corresponding pipeline.
> I have attached a tgz of examples showing problems (1) and (2) above, as well as my successful route.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Need professional support or training for Apache Camel? Graphic Design by Hiram and the Nabble Forum configured by James