You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Markus Reil <gi...@gmx.de> on 2008/11/18 12:28:53 UTC
Problem with Delayer (Expression language is null)
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/Problem-with-Delayer-%28Expression-language-is-null%29-tp20557799p20557799.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem with Delayer (Expression language is null)
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi Markus,
you should post this message to the Camel user list
http://activemq.apache.org/camel/mailing-lists.html
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com - get a free ActiveMQ user guide
ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net
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
>
>