Thanks Claus, So using simple, the below is accurate? camelContext is a keyword in simple then? "${camelContext.getEndpoint('seda:foo').currentQueueSize}"
Geoffrey A Gershaw Credit eTrading Development +1 919 994 6412 (*102 6412) -----Original Message----- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Saturday, September 14, 2013 6:42 AM To: users@camel.apache.org Subject: Re: Simple Language Question Hi You need to use getCurrentQueueSize to get the current size. The size is for the max size of the queue. I added unit test to demonstrate how to do that https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=camel-core/src/test/java/org/apache/camel/component/seda/SedaSimpleSizeTest.java;hb=0c1b2c53 On Fri, Sep 13, 2013 at 7:11 PM, Gershaw, Geoffrey A. (KFFC 223) <geoffrey.gers...@credit-suisse.com> wrote: > Sorry, I should have said this 2.11 > > Geoffrey A Gershaw > Credit eTrading Development > +1 919 994 6412 (*102 6412) > > > -----Original Message----- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Friday, September 13, 2013 8:49 AM > To: users@camel.apache.org > Subject: Re: Simple Language Question > > 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 > > > =============================================================================== > 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 =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ===============================================================================