camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Simple Language Question
Date Fri, 13 Sep 2013 12:48:43 GMT
What Camel version do you use?

On Thu, Sep 12, 2013 at 6:03 PM, Gershaw, Geoffrey A. (KFFC 223)
<geoffrey.gershaw@credit-suisse.com> wrote:
> Hello,
>
>
> I am trying to print the size of a seda queue in a log statement. See my attempt below.
I need to get hold of the Context so I can lookup the seda endpoint. I thought I could do
this via the Exchange. I can seem to get a hold of that either.
>
> Anyone know how to get a reference to the CamelContext or Exchange in simple?
>
> <camel:log message="HandleMultiMarketDataIncremental in ${date:now:HH:mm:ss.SSS} sedaQueue:${in.getExchange().getContext().getEndpoint('seda:HandleMultiMarketDataIncremental').size()}"/>
>
> Thanks much
>
> Geoffrey A Gershaw
>
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ===============================================================================
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message