camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1103) Delayer not working as expected.
Date Wed, 19 Nov 2008 19:56:05 GMT

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

Jonathan Anstey resolved CAMEL-1103.
------------------------------------

    Resolution: Fixed

> Delayer not working as expected.
> --------------------------------
>
>                 Key: CAMEL-1103
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1103
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Markus Reil
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>
> The delayer expression is not evaluated in my route builder:
> from(waitQueueName).delayer(header(HEADER_EXECUTION_TIME)).bean(routerBean).recipientList(header(HEADER_TARGET_ROUTE));
> While the recipientList expression is working the header expression is always ignored.
I stepped through the code and saw that in DelayerType.createAbsoluteTimeDelayExpression()
"expr.getLanguage()" is always null:
>     private Expression createAbsoluteTimeDelayExpression(RouteContext routeContext) {
>         ExpressionType expr = getExpression();
>         if (expr != null) {
>             if (ObjectHelper.isNotNullAndNonEmpty(expr.getLanguage())) {
>                 return expr.createExpression(routeContext);
>             }
>         }
>         return null;
>     }
> I have seen that this was changed in 1.5.0 (http://issues.apache.org/activemq/browse/CAMEL-811).


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


Mime
View raw message