What Camel version do you use?

On Thu, Sep 12, 2013 at 6:03 PM, Gershaw, Geoffrey A. (KFFC 223)
<geoffrey.gers...@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: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to