camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7448) throttle EIP - unchanged value
Date Tue, 26 Aug 2014 18:43:58 GMT

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

Claus Ibsen commented on CAMEL-7448:
------------------------------------

Ben, yeah this sounds like a good idea. I think you should try this change.

> throttle EIP - unchanged value
> ------------------------------
>
>                 Key: CAMEL-7448
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7448
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, eip
>    Affects Versions: 2.13.1
>            Reporter: Elvio Caruana
>            Assignee: Ben O'Day
>            Priority: Minor
>             Fix For: 2.13.3, 2.14.0
>
>
> Throttler Documentation [1] states "If the header is absent, then the Throttler uses
the old value. So that allows you to only provide a header if the  value is to be changed".
> however if the expression evaluates to null (header missing from message) the Throttler
throws an exception (Throttler.java:108).
> The workaround is to ensure that all messages carry the value (if the value is the same
no changes will take affect). Adding an option to turn this on and off (e.g. allowNullException)
would make it much easier to use (as per camel-users thread [2]).
> [1] http://camel.apache.org/throttler.html
> [2] http://camel.465427.n5.nabble.com/throttle-EIP-unchanged-value-td5751300.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message