[jira] Created: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org
onException to support predicate to only trigger it if predicate is true
------------------------------------------------------------------------

                 Key: CAMEL-1104
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
             Project: Apache Camel
          Issue Type: New Feature
          Components: camel-core
    Affects Versions: 1.5.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.0.0


Currently if you use etc
{code}
onException(MyException.class).to("bean:handleMyException");
{code}

Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not

Such as supporting setting a predicate with when:
{code}
onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
{code}

See nabble:
http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-1104:
------------------------------------

You should also look into some of the issues the end-users reported . See the nabble link above.

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Work on CAMEL-1104 started by Claus Ibsen.

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-1104:
------------------------------------

Wiki needs to be updated

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-1104:
------------------------------------

Wiki updated on exception clause, section: Using fine grained selection using onWhen

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-1104) onException to support predicate to only trigger it if predicate is true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen resolved CAMEL-1104.
--------------------------------

    Fix Version/s: 1.5.1
       Resolution: Fixed

Merged to 1.5.1 in rev 719980

> onException to support predicate to only trigger it if predicate is true
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1104
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1104
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.1, 2.0.0
>
>
> Currently if you use etc
> {code}
> onException(MyException.class).to("bean:handleMyException");
> {code}
> Then this exception is always routed if a MyException is thrown. Some end users might need to add a predicate so they can add their custom code if the exception should be routed or not
> Such as supporting setting a predicate with when:
> {code}
> onException(MyException.class).when().header("foo").isEqualTo("bar").to("bean:handleMyException");
> {code}
> See nabble:
> http://www.nabble.com/1.5-error-handling-Spring-config-buggy-not-complete--tt20562554s22882.html

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