Re: Simple Language

2023-06-03 Thread Claus Ibsen
What camel version do you use, and what do you have as input and get as output On Thu, May 25, 2023 at 8:23 AM Michael Rambichler wrote: > Hi all, > > I am struggling with a simple "Simple" Language OGNL use: > > I would like to replace a String with a regex vi

Simple Language

2023-05-24 Thread Michael Rambichler
Hi all, I am struggling with a simple "Simple" Language OGNL use: I would like to replace a String with a regex via simple Please see the following example: .setHeader("result", simple("${header.CamelFileName.replaceAll('^.*.pdf', 'Hello')}"))

Re: Simple language

2021-11-26 Thread ski n
That's pretty cool, worked for me! Raymond Op vr 26 nov. 2021 om 18:19 schreef Daniel Langevin < daniel.lange...@shq.gouv.qc.ca>: > OK here is a solution to get UnixTimeStamp in SIMPLE LANGUAGE camel 2.xx > > resultType="java.util.Date">${header.Cam

RE: Simple language

2021-11-26 Thread Daniel Langevin
OK here is a solution to get UnixTimeStamp in SIMPLE LANGUAGE camel 2.xx ${header.CamelCreatedTimestamp} ${header.wTimeStamp.getTime()/1000} Hope it's help! Daniel Langevin -Message d'origine- De : ski n Envoyé : 26 novembre 2021 09:48 À : users@camel.apache.org

Re: Simple language

2021-11-26 Thread ski n
ossible with simple) But I am now in an environment where Groovy is not on the classpath (Camel XML DSL code is exactly generated) and I can only use the simple language. Greets, Raymond Op vr 26 nov. 2021 om 14:40 schreef Daniel Langevin < daniel.lange...@shq.gouv.qc.ca>: > S

RE: Simple language

2021-11-26 Thread Daniel Langevin
Sorry to fast for time, Here is: ${date:now:-MM-dd' à 'HH:mm:ss.fff' ('yyy'.'D')'} Daniel -Message d'origine- De : Daniel Langevin Envoyé : 26 novembre 2021 08:37 À : users@camel.apache.org Objet : RE: Simple language Hi Raymond,

RE: Simple language

2021-11-26 Thread Daniel Langevin
Hi Raymond, For date: ${date:now:-MM-dd' à 'HH:mm:ss' ('yyy'.'D')'} For addition 1 to value of Var1 ${header.Var}++ Regards Daniel Langevin -Message d'origine- De : ski n Envoyé : 26 novembre 2021 07:18 À : users@camel.apache.org

Simple language

2021-11-26 Thread ski n
Hi all, I have two questions regarding simple expressions: 1) Is it possible the get the time in miliseconds. Something like ${data:now.toMilli} 2) Is it possible to calculate with the simple language ${1 +1} Kind regards, Raymond

AW: OAI-PMH Component and Simple Language support

2021-08-04 Thread Penagos Jaime
Component and Simple Language support Oh, I havent used the toD yet. The full route looks like this from("direct:fetch") .to("oaipmh:URL" + "?" + "verb=GetRecord" + "

AW: OAI-PMH Component and Simple Language support

2021-08-04 Thread Penagos Jaime
+ "&" + "metadataPrefix=datacite" ) .log("${body}"); Will check the couple things you recommended. Thanks! -Ursprüngliche Nachricht- Von: Claus Ibsen Gesendet: Mittwoch, 4. August 2021

Re: OAI-PMH Component and Simple Language support

2021-08-04 Thread Claus Ibsen
Hi See the toD and content enricher eip patterns On Wed, Aug 4, 2021 at 1:22 PM Penagos Jaime wrote: > > Hi everyone, > > I am currently testing the OAI-PMH component with Camel 3.11.x, the component > works as intended, but it doesnt let me use Simple Language in the Produce

Re: OAI-PMH Component and Simple Language support

2021-08-04 Thread Andrea Cosentino
Can you please show the full route? To use the simple language you need to use toD and not to. -- Andrea Cosentino  -- Apache Camel PMC Chair Apache Karaf Committer Apache Servicemix PMC Member Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On

OAI-PMH Component and Simple Language support

2021-08-04 Thread Penagos Jaime
Hi everyone, I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer. I want to load an ID from the body of a file, and after some basic processing, use this information as the

Re: simple language date offset

2020-12-16 Thread Daniel Johansson
onth and only process those files. > > > > > > I have been experimenting with: > > > filterFile=$simple{file:modified} < ${date:now} > > > and: > > > .filter(header("CamelFileLastModified").isLessThan("${date:now} - > > > $simple{head

RE: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-10-12 Thread Corneliu Chitic
Hi, I want to be sure you understand the impact is high in multi-threaded applications without possibility to overcome unless one re-writes the code to avoid the bean & ognl in Simple language. I was under the impression that LTS implies such kind of patches, but it's your call, I d

Re: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-10-12 Thread Claus Ibsen
ions, not in 3.4.x. > Thank you, Corneliu > > -Original Message- > From: Claus Ibsen > Sent: Monday, October 5, 2020 15:43 > To: users@camel.apache.org > Subject: Re: Performance regression with bean and ognl expressions in Simple > language version 3.4.x >

RE: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-10-12 Thread Corneliu Chitic
rformance regression with bean and ognl expressions in Simple language version 3.4.x Hi Corneliu Thanks for the reproducer. We have fixed a bunch of stuff and you are welcome to try with SNAPSHOT and do profiling again and report back if you can find improvements too. Or if you dont have time th

Re: simple language date offset

2020-10-06 Thread Claus Ibsen
")) > > > > what i would like to do is to offset ${date:now} with one month like > > > > "${date:now-${header.ONE_MONTH}}" > > > > The documentation for simple language for 'date:' variable says: > > "Command accepts offse

Re: simple language date offset

2020-10-06 Thread Claus Ibsen
would like to do is to offset ${date:now} with one month like > > "${date:now-${header.ONE_MONTH}}" > > The documentation for simple language for 'date:' variable says: > "Command accepts offsets such as: *now-24h* or *in.header.xxx+1h* or even > *now+1h30m-100*.&qu

simple language date offset

2020-10-06 Thread Daniel Johansson
ate:now} - $simple{header.ONE_MONTH}")) what i would like to do is to offset ${date:now} with one month like "${date:now-${header.ONE_MONTH}}" The documentation for simple language for 'date:' variable says: "Command accepts offsets such as: *now-24h* or *in.header.xxx+1h* or

Re: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-10-05 Thread Claus Ibsen
Hi Corneliu Thanks for the reproducer. We have fixed a bunch of stuff and you are welcome to try with SNAPSHOT and do profiling again and report back if you can find improvements too. Or if you dont have time then test again when Camel 3.6.0 comes out later in October On Thu, Sep 17, 2020 at 2:32

Re: Unclear reasons for conversion rules when using Simple language

2020-09-30 Thread Claus Ibsen
wse/CAMEL-14542 > > However the rule of thumb is that type matching via simple language is > more complex as both operators can be dynamic values, and also a > numeric value such as 0, would that be a int, long, float, etc > depending on the other value etc. > > And also mind th

Re: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-28 Thread Claus Ibsen
b.com/dchirov/camel-performance-sample.git > > > > Best Regards, Denis > > > > -Original Message- > > From: Claus Ibsen > > Sent: Saturday, September 19, 2020 6:28 PM > > To: users@camel.apache.org > > Subject: Re: Performance regression with bea

Re: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-21 Thread Andrea Cosentino
; From: Claus Ibsen > Sent: Saturday, September 19, 2020 6:28 PM > To: users@camel.apache.org > Subject: Re: Performance regression with bean and ognl expressions in > Simple language version 3.4.x > > Hi > > Many things have changed of course when you go from a major vers

RE: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-21 Thread Denis Chirov
with bean and ognl expressions in Simple language version 3.4.x Hi Many things have changed of course when you go from a major version v2 to v3. Can you put together a very small example application that can run standalone that can be used to reproduce the issue. And if it can run outside

Re: Unclear reasons for conversion rules when using Simple language

2020-09-20 Thread Claus Ibsen
Hi There is maybe some things that can be optmized a little bit https://issues.apache.org/jira/browse/CAMEL-14542 However the rule of thumb is that type matching via simple language is more complex as both operators can be dynamic values, and also a numeric value such as 0, would that be a int

Re: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-19 Thread Claus Ibsen
Hi Many things have changed of course when you go from a major version v2 to v3. Can you put together a very small example application that can run standalone that can be used to reproduce the issue. And if it can run outside Spring Boot with just a basic public static void main then its maybe eve

RE: Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-18 Thread Corneliu Chitic
regression with bean and ognl expressions in Simple language version 3.4.x Hi, we've identified a performance regression while running same code with Apache Camel 3.4.3 + Spring Boot vs Apache Camel 2.24.2 with Spring framework 5.1.9. We've migrated one application to this LTS vers

Performance regression with bean and ognl expressions in Simple language version 3.4.x

2020-09-16 Thread Corneliu Chitic
Hi, we've identified a performance regression while running same code with Apache Camel 3.4.3 + Spring Boot vs Apache Camel 2.24.2 with Spring framework 5.1.9. We've migrated one application to this LTS version and we face this impact. The main bottleneck is the synchronized block from: org.apa

Unclear reasons for conversion rules when using Simple language

2020-09-16 Thread Corneliu Chitic
Hi, Can you please help me understand the rules for Simple type conversion? I find the documentation a bit confusing and trials even more. Running Apache Camel 3.4.3 with Spring Boot. I have a mixture of code written in XML DSL and Java. The code snippet is: ...#1 ${header.CamelHttpResponseCo

simple language bodyOneLine throws error

2020-06-16 Thread shiva kumar g.v
Hi team, I am trying to use camel simple expression bodyOneLine for logging payload in single line. But it throws below error while starting the route. Camel version= 2.23.1 Code: .log(org.apache.camel.LoggingLevel.INFO,"Request Received : ${bodyOneLine}") Error: Caused by: org.apa

Re: simple language bodyOneLine throws error

2020-06-16 Thread Alex Dettinger
Hi Shiva, bodyOneLine was introduced since camel 3 onward, https://issues.apache.org/jira/browse/CAMEL-13674. Maybe it's time to get a ride at camel 3 https://camel.apache.org/manual/latest/camel-3-migration-guide.html ;) Alex On Tue, Jun 16, 2020 at 9:57 AM Gv, Shivakumar wrote: > Hi team,

simple language bodyOneLine throws error

2020-06-16 Thread Gv, Shivakumar
Hi team, I am trying to use camel simple expression bodyOneLine for logging payload in single line. But it throws below error while starting the route. Camel version= 2.23.1 Code: .log(org.apache.camel.LoggingLevel.INFO,"Request Received : ${bodyOneLine}") Error: Caused by: org.apache.camel.

Re: Simple language evaluation camel 3.0.1

2020-05-01 Thread Claus Ibsen
Hi See the migration guide, you should use ${xxx} around the simple tokens, such as header etc. On Sat, May 2, 2020 at 5:28 AM Vikas Jaiswal wrote: > > I am trying to use simple and have the following in spring xml: > > "header? contains 'HeaderName' and header.HeaderName = > 'TEST'" > > This a

Re: Simple language evaluation camel 3.0.1

2020-05-01 Thread Gerald Kallas - mailbox.org
Hi Victor, the parameter has been changed to „name“ in Camel 3.x. Sent by my mobile device - Gerald Kallas > Am 02.05.2020 um 05:28 schrieb Vikas Jaiswal : > > I am trying to use simple and have the following in spring xml: > > "header? contains 'HeaderName' and header.HeaderName = > 'TEST'"

Simple language evaluation camel 3.0.1

2020-05-01 Thread Vikas Jaiswal
I am trying to use simple and have the following in spring xml: "header? contains 'HeaderName' and header.HeaderName = 'TEST'" This always evaluated to true irrespective of the value of HeaderName. What am I doing wrong here? Regards, Vikas

Re: Simple language in 3.1.0

2020-04-23 Thread Claus Ibsen
rg>> het volgende geschreven: > > The syntax without placeholders had been deprecated in the 2.x branch since > a long time. > You now need to use simple('${headers.entityMap.sourceTableName}') > > Le jeu. 23 avr. 2020 à 15:42, Remco Schoen > mailto:r.sch...@topde

Re: Simple language in 3.1.0

2020-04-23 Thread Remco Schoen
:r.sch...@topdesk.com>> wrote: Hi, I checked the docs for 2.x and there it says it is deprecated, thanks. But my next question would be, is the documentation still up-to-date: “The simple language uses ${body} placeholders for complex expressions where the expression contains constant l

Re: Simple language in 3.1.0

2020-04-23 Thread Claus Ibsen
On Thu, Apr 23, 2020 at 4:19 PM Remco Schoen wrote: > > Hi, > > I checked the docs for 2.x and there it says it is deprecated, thanks. > > But my next question would be, is the documentation still up-to-date: > > “The simple language uses ${body} placeholders for complex

Re: Simple language in 3.1.0

2020-04-23 Thread Remco Schoen
Hi, I checked the docs for 2.x and there it says it is deprecated, thanks. But my next question would be, is the documentation still up-to-date: “The simple language uses ${body} placeholders for complex expressions where the expression contains constant literals. The $\{ } placeholders can be

Re: Simple language in 3.1.0

2020-04-23 Thread Guillaume Nodet
The syntax without placeholders had been deprecated in the 2.x branch since a long time. You now need to use simple('${headers.entityMap.sourceTableName}') Le jeu. 23 avr. 2020 à 15:42, Remco Schoen a écrit : > Hi, > > I have a question about the Simple language and the use

Simple language in 3.1.0

2020-04-23 Thread Remco Schoen
Hi, I have a question about the Simple language and the use of ${}. Before Camel 3 this worked in getting data from the object in the header: .setHeader('tableName').simple('headers.entityMap.sourceTableName’) .setHeader('fields').simple('headers.entityMap.sourceFi

Substring problems with simple language

2019-11-15 Thread Stefan Ziegler
Hi I try to substring the file name and set it as property: from("file://"+pathToUnzipFolder+"/?noop=true&charset=ISO-8859-1&include=.*\\.itf&delay=3&initialDelay=2000&readLock=changed") .setProperty("dataset", simple("${header.CamelFileName.substring(2,4)}")) .process(new Ili2pgReplaceProcess

Re: Placeholders are not resolved in Simple language while using resource: prefix

2018-05-05 Thread Jan Bednář
Opened wish type minor issue https://issues.apache.org/jira/browse/CAMEL-12486

Placeholders are not resolved in Simple language while using resource: prefix

2018-04-30 Thread Jan Bednář
Hello, there is possible minor bug in Simple language (tested with Camel 2.20.1), which causes not resolving placeholders while using resources prefix. This was identified in https://stackoverflow.com/questions/50063874/load-camels-body-dynamically-depending-on-header and as workaround I have

Rép. : AW: substring using indexof +1 using simple language

2017-11-24 Thread Daniel Langevin
23. November 2017 16:28 An: users@camel.apache.org Betreff: substring using indexof +1 using simple language Hi, i try to retreive domain name from a String containng an email adress with simple language from the body message in single instruction. I'm using camel 2.17.7 Look

AW: substring using indexof +1 using simple language

2017-11-23 Thread christian.jacob
I recommend to use a regular expression instead. -Ursprüngliche Nachricht- Von: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Gesendet: Donnerstag, 23. November 2017 16:28 An: users@camel.apache.org Betreff: substring using indexof +1 using simple language Hi, i try to

substring using indexof +1 using simple language

2017-11-23 Thread Daniel Langevin
Hi, i try to retreive domain name from a String containng an email adress with simple language from the body message in single instruction. I'm using camel 2.17.7 Look my try ${body.substring(${body.indexOf("@")}++,${body.length})} but rec

RE: Simple language starts with ignore case

2017-11-14 Thread Pakarinen, Jari
Hi, Thanks, found it: .when().simple(“${header.CamelFileNameOnly?.toLowerCase()} start with ‘myservice’) -- Jari -Original Message- From: Onder SEZGIN [mailto:ondersez...@gmail.com] Sent: 13. marraskuuta 2017 21:10 To: users@camel.apache.org Subject: Re: Simple language starts with

Re: Simple language starts with ignore case

2017-11-13 Thread Onder SEZGIN
ti > Lähettäjä: Claus Ibsen > Päivämäärä: 13.11.2017 17.04 (GMT+02:00) > Saaja: users@camel.apache.org > Aihe: Re: Simple language starts with ignore case > > Hi > > No its not possible, we have too many operators already - to add > starts with ignorecase (would be

Re: Simple language starts with ignore case

2017-11-13 Thread Pakarinen, Jari
Hi, Thanks. I understand. How do I go about lowercasing the filename value? Jari Lähetetty Samsung Galaxy -älypuhelimesta. Alkuperäinen viesti Lähettäjä: Claus Ibsen Päivämäärä: 13.11.2017 17.04 (GMT+02:00) Saaja: users@camel.apache.org Aihe: Re: Simple language starts with

Re: Simple language starts with ignore case

2017-11-13 Thread Claus Ibsen
Hi, > > Would it be possible to have a starts with ignore case (like contains ignore > case) in the simple language ? Currently it is case sensitive. Or is there a > possibility to set the "${header.CamelFileNameOnly} to lower case somehow ? > > .when(simple("${header

Simple language starts with ignore case

2017-11-13 Thread Pakarinen, Jari
Hi, Would it be possible to have a starts with ignore case (like contains ignore case) in the simple language ? Currently it is case sensitive. Or is there a possibility to set the "${header.CamelFileNameOnly} to lower case somehow ? .when(simple("${header.CamelFileNameOnly} s

issues with using properties, bean and simple language combinations

2017-01-06 Thread Baltej Singh
What is the procedure to create a defect JIRA for Camel? I am including a simple camelContext.xml and properties file to replicate the issue using Camel 2.18.1. The simple example that shows the issues with various {{}}, =$simple{file:onlyname} and ${bean:...} combinations fileNami

Re: simple language nullsafe expression fails on empty array

2016-10-13 Thread Claus Ibsen
Hi Yeah sure we love contributions http://camel.apache.org/contributing On Thu, Oct 13, 2016 at 6:33 PM, dmitriyC300 wrote: > I may have found a limitation w/ simple language on the 1st index of an empty > array with a nullsafe expression. Making sure list.size() > 0 in > BeanExp

simple language nullsafe expression fails on empty array

2016-10-13 Thread dmitriyC300
I may have found a limitation w/ simple language on the 1st index of an empty array with a nullsafe expression. Making sure list.size() > 0 in BeanExpression line 384 should address this use case. I'm happy to submit a pull request with a tweak & unit test case if that's h

Camel Simple language ++ operator

2015-10-27 Thread Vanshul . Chawla
Hello all, Can I get an example on how to use ++ operator in Camel Spring DSL I did this MsgID:${header.Index} +1 and MsgID:${header.Index}++ But both doesn't work Vanshul

simple language for filters on values of HTTP headers

2015-06-09 Thread Cristiano Costantini
Hi All, in a camel route starting with a Jetty endpoint, I want to enable gzipping if the input sends the http header: "Accept-Encoding: gzip" However, the Accept-Encoding may have multiple comma separated values for different encoding accepted, typical it is Accept-Encoding: gzip, deflate As th

Re: Apache Camel Simple Language regex fails

2015-06-06 Thread Claus Ibsen
t; I tested it with some regex test tools and it seems it is working but when I > try to use it with camel simple it is not working. > How I use regex is the following : ${in.header.msisdn} regex > '^(tel:\+)(974)(44)|^(974)(44)' > > What I am doing wrong? > > &

Apache Camel Simple Language regex fails

2015-06-02 Thread tesla
oing wrong? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Simple-Language-regex-fails-tp5767786.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
Hi I logged a ticket to add exchange function to the simple language https://issues.apache.org/jira/browse/CAMEL-8512 On Wed, Mar 18, 2015 at 9:00 PM, Claus Ibsen wrote: > There is a route id function > > ${routeId} > > See the functions in the table at > http://camel.apache

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
Thank you -- That is helpful but actually I am converting getFromEndpoint to a string and logging that, but I can stuff most of the information into routeId. Also, since I can get to exchange via groovy, I can do anything without resorting to writing a bean, just not conveniently as a one liner in

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
There is a route id function ${routeId} See the functions in the table at http://camel.apache.org/simple On Wed, Mar 18, 2015 at 8:48 PM, Camel Guy wrote: > Deep in the "message stack" I want to do this: > > > > .. instead of putting the "from" routeId into a property or header, which > is wha

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
Deep in the "message stack" I want to do this: .. instead of putting the "from" routeId into a property or header, which is what I was doing because I was ignorant of exchange.getFromRouteId. On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote: > Hi > > No what is the use-case? > > On Wed, Ma

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
Hi No what is the use-case? On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote: > ${exchange} doesn't seem to work > > > Thanks, > ~dg -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.man

Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
${exchange} doesn't seem to work Thanks, ~dg

Re: Using Simple language in Spring XML, String.replaceAll with regex grouping throws Exception

2015-03-18 Thread Claus Ibsen
.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105) > at > org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:67) > at > org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:189) >

Using Simple language in Spring XML, String.replaceAll with regex grouping throws Exception

2015-03-18 Thread meetdevang
(BeanExpression.java:281) ... 26 more Is this a bug in the ObjectHelper.between method which looks for the first instance of the ')' and hence doesn't really parse the arguments correctly? Or Am I missing something? -- View this message in context: http://camel.465427.n5.n

RE: simple language Unix timestamp

2014-03-27 Thread Olaf
thanks! it works producing java currentTimeMillis. What I need is currentTimeMillis / 1000L Can simple evaluate it? -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-Unix-timestamp-tp5749433p5749439.html Sent from the Camel - Users mailing list archive at

RE: simple language Unix timestamp

2014-03-27 Thread Siano, Stephan
Subject: simple language Unix timestamp Hello, I know there is simple("${date:now:MMdd}") or other date formats. How can I print just current Unix timestamp? Does simple support it? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-Unix-time

simple language Unix timestamp

2014-03-27 Thread Olaf
Hello, I know there is simple("${date:now:MMdd}") or other date formats. How can I print just current Unix timestamp? Does simple support it? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-Unix-timestamp-tp5749433.html Sent from

RE: Simple Language Question

2013-09-16 Thread Gershaw, Geoffrey A. (KFFC 223)
sen [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

Re: Simple Language Question

2013-09-14 Thread Claus Ibsen
aus.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) > wrote: >> Hello, >&g

Re: Simple Language Question

2013-09-13 Thread Claus Ibsen
What Camel version do you use? On Thu, Sep 12, 2013 at 6:03 PM, Gershaw, Geoffrey A. (KFFC 223) 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 coul

RE: Simple Language Question

2013-09-13 Thread Gershaw, Geoffrey A. (KFFC 223)
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

Simple Language Question

2013-09-12 Thread Gershaw, Geoffrey A. (KFFC 223)
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 Ca

Re: blueprint property-placeholders + simple language

2012-11-23 Thread Claus Ibsen
se to have one place to configure it all. > > Are there any plans to allow simple-language xpressions in future releases? > You can use $simple{xxx}, > best regards, > Thomas. > > > > > > -- Claus Ibsen - Red Hat, Inc. FuseSource is now part of R

blueprint property-placeholders + simple language

2012-11-23 Thread Walzer, Thomas
e to externalize the complete configuration into the properties files. I know I could combine simple+variable content in the blueprint like but that would defeat the purpose to have one place to configure it all. Are there any plans to allow simple-language xpressions in future releases? best reg

Re: Simple language question

2012-06-19 Thread Willem Jiang
Ibsen [mailto:claus.ib...@gmail.com] Sent: Monday, June 18, 2012 11:35 PM To: users@camel.apache.org Subject: Re: Simple language question On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey< geoffrey.gers...@credit-suisse.com> wrote: Hello all, I am using the Spring DSL with the Filt

Re: Simple language question

2012-06-19 Thread Claus Ibsen
.com] > Sent: Monday, June 18, 2012 11:35 PM > To: users@camel.apache.org > Subject: Re: Simple language question > > On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < > geoffrey.gers...@credit-suisse.com> wrote: > >> Hello all, >> >> >> >&g

Re: Simple language question

2012-06-19 Thread Christian Schneider
How about using setHeader to store the result? Christian Am 19.06.2012 14:19, schrieb Gershaw, Geoffrey: Thanks for reply Claus, I see your point. I was trying to avoid writing a nested filter. ${body} != null I guess I am looking for a lo

RE: Simple language question

2012-06-19 Thread Gershaw, Geoffrey
012 11:35 PM To: users@camel.apache.org Subject: Re: Simple language question On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < geoffrey.gers...@credit-suisse.com> wrote: > Hello all, > > > > I am using the Spring DSL with the Filter EIP. The below snippet works, > but

Re: Simple language question

2012-06-18 Thread Claus Ibsen
On Mon, Jun 18, 2012 at 11:49 PM, Gershaw, Geoffrey < geoffrey.gers...@credit-suisse.com> wrote: > Hello all, > > > > I am using the Spring DSL with the Filter EIP. The below snippet works, > but its confusing. I am trying to include a msg with a non-null body > the outcome of bean:CXRefDataCache

Simple language question

2012-06-18 Thread Gershaw, Geoffrey
Hello all, I am using the Spring DSL with the Filter EIP. The below snippet works, but its confusing. I am trying to include a msg with a non-null body the outcome of bean:CXRefDataCache?method=put equals false. Is there a cleaner way? ${body} != null and false == ${bean:CXR

Re: simple language in http endpoint?

2012-03-14 Thread asd09
thank, but i couldn't make what you said. i solve my question by set CamelHttpQuery header earlier I tried to set HTTP_QUERY, but it didn't work. -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564955.html Sent from

Re: simple language in http endpoint?

2012-03-14 Thread Claus Ibsen
any suggestions? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email: cib...@fusesource.

Re: simple language in http endpoint?

2012-03-14 Thread asd09
java.util.TimerThread.run(Timer.java:462)[:1.6.0_30] Then i try apache-servicemix-4.4.1-fuse-03-06, but i get same error -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564393.html Sent from the Camel - Users mailing list archive at Nabble.com.

simple language in http endpoint?

2012-03-14 Thread asd09
how can i do something like this https://somehost/index.php?$header.params222 /> i try many combinations, but i not found worked version. any suggestions? -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html Sent from

An improved Simple Language on the way - Any feedback

2011-08-29 Thread Claus Ibsen
Hi If you have been using the simple language with Camel http://camel.apache.org/simple Then we, the Camel team, would like to hear any feedback you may have about this language. - Do you see something missing? - Did you have trouble getting the syntax correct and have the language do as

Re: Strange behavior with simple language in camel route

2011-04-13 Thread Willem.Jiang
Hi, If you want to use the properties component in simple language, the syntax is liking this ${properties:[locations]:key} Willem -- View this message in context: http://camel.465427.n5.nabble.com/Strange-behavior-with-simple-language-in-camel-route-tp3200894p4300441.html Sent from the Camel

Re: Use simple language from within a processor

2010-10-14 Thread Bengt Rodehav
; other >> things). However, what directory to monitor depends on what day it is. E g >> files that are processed are moved to an archive directory with a >> subdirectory name with today's date ( e g ./archive/20101014). >> >> I perform my actual monitoring in a

Re: Use simple language from within a processor

2010-10-14 Thread Willem Jiang
( e g ./archive/20101014). I perform my actual monitoring in a custom processor. I would like to configure this using the simple language, e g like this: # Directory to monitor directory=./archive/${date:now:MMdd} I've been using the simple language before as part of the route. However

Use simple language from within a processor

2010-10-14 Thread Bengt Rodehav
ke to configure this using the simple language, e g like this: # Directory to monitor directory=./archive/${date:now:MMdd} I've been using the simple language before as part of the route. However, I don't know how I can evaluate a simple language expression (like the directory prope

Re: Strange behavior with simple language in camel route

2010-10-06 Thread Claus Ibsen
On Wed, Oct 6, 2010 at 9:23 AM, Charles Moulliard wrote: > 2.2 > Check the documentation: http://camel.apache.org/simple It says that you need 2.3 for OGNL support in simple language. > > On Wed, Oct 6, 2010 at 9:22 AM, Claus Ibsen wrote: >> What version of Camel are you u

Re: Strange behavior with simple language in camel route

2010-10-06 Thread Charles Moulliard
2.2 On Wed, Oct 6, 2010 at 9:22 AM, Claus Ibsen wrote: > What version of Camel are you using? > > On Wed, Oct 6, 2010 at 8:47 AM, Charles Moulliard > wrote: >> Hi, >> >> The following syntax works >> >>                from(directTest) >>                .inOut(toQueue) >>                .to(log

Re: Strange behavior with simple language in camel route

2010-10-06 Thread Claus Ibsen
What version of Camel are you using? On Wed, Oct 6, 2010 at 8:47 AM, Charles Moulliard wrote: > Hi, > > The following syntax works > >                from(directTest) >                .inOut(toQueue) >                .to(logTest); > >                from(toQueue) >                .transform().sim

Strange behavior with simple language in camel route

2010-10-05 Thread Charles Moulliard
Hi, The following syntax works from(directTest) .inOut(toQueue) .to(logTest); from(toQueue) .transform().simple("Report incident id : ${in.body}") .to(fileOutput) .beanRef("feedback",

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
;>> >> >> uses >>> >>> >> >> >>> Camel 2.4. I need to be able to skip transferring empty files >>> >>> and >>> >>> >> was >>> >>> >> >> >>> hoping >>> >>> >>

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Claus Ibsen
> >>> >> >> >>> >> >>> >> >> >>>  String skippedUri = >> >>> >> >> "file://skipped/${date:now:MMdd}/${file:name}"; >> >>> >> >> >>> >>

Re: Skipping empty files, problem with simple language

2010-09-02 Thread Bengt Rodehav
gt;> >>> start the route: > >>> >> >> >>> > >>> >> >> >>> *java.lang.NoSuchMethodError: > >>> >> >> >>> > >>> >> >> >>> > >>> >> >> > >>&

  1   2   >