camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadrian Zbarcea <hzbar...@gmail.com>
Subject Re: Delayer not working as expected.
Date Tue, 18 Nov 2008 17:09:42 GMT
Hi Markus,

Thanks for pointing this out.  I will look into this today.

Hadrian

On Nov 18, 2008, at 11:58 AM, Markus Reil wrote:

>
> Hi,
>
> I am using camel 1.5.0 and my RouteBuilder is configured like this:
>
> 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).
>
> What do I have to do to to get this working? Thanks for any help.
>
> Cheers,
> Markus
> -- 
> View this message in context: http://www.nabble.com/Delayer-not-working-as-expected.-tp20563685s22882p20563685.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Mime
View raw message