Re: Camel Simple expressions in Groovy

2015-10-31 Thread contactreji
Wow! Thanks Claus. It worked like a charm One more challenge I am facing now is to pick up the exchange values using simple expressions in a log statement. I am trying to do something like below from("file:C:\\Users\\Z001NLH\\Desktop\\in3").setProperty("exchangeTXNNumber",simple("exchangeId"))

Re: move to failed folder, with onException in place

2015-10-31 Thread Claus Ibsen
I think you need to tell us a bit more before we can help. Maybe show a bit more route code what you attempt. On Thu, Oct 29, 2015 at 2:28 PM, Hans Orbaan wrote: > Hi all, > > Why is a file not moved to the failed folder when there is an onexception > with a to-endpoint? > > When I use the follo

Re: correct way to provide regex in TokenizerExpression?

2015-10-31 Thread Claus Ibsen
So you want to split a file line by line and disregard what kind of line terminators the file is using. Camel uses the java.util.Scanner with tokenizer with that provided token to split it. So if you can get that working then it should be supported. As it may be a bit difficult to do this maybe w

Re: Camel Simple expressions in Groovy

2015-10-31 Thread Claus Ibsen
Try with .setProperty("bodyBackup", simple("body")) On Sat, Oct 31, 2015 at 4:40 PM, contactreji wrote: > Hey > > Any Groovy experts out there who has tried writing Camel Simple expression > in groovy camel routes? Can someone post an example. > > I tried > *rom("file:C:\\Users\\Mathews\\Desktop

Re: Camel cache across bundles in karaf

2015-10-31 Thread Reji Mathews
Hey Create a common route containing cache component into some commons bundle and connect to that route using "vm" or "direct-vm" component from any other routes in other bundles. Make sure you set the cache operations headers before calling this common route . Cheers Reji On 30 Oct 2015 14:16,

Re: Camel Simple expressions in Groovy

2015-10-31 Thread contactreji
Hey Any Groovy experts out there who has tried writing Camel Simple expression in groovy camel routes? Can someone post an example. I tried *rom("file:C:\\Users\\Mathews\\Desktop\\in").log(LoggingLevel.INFO,"BasicRouteLogger","Received File").setProperty("bodyBackup",$simple{body}).log("Done ").

Re: Transactional Route with JTA

2015-10-31 Thread Preben.Asmussen
Hi Christian I was on the same path some time ago. I don't recall all of the details from the top of my head, but there is a couple of posts about it here. http://activemq.2283324.n4.nabble.com/Setting-redelivery-properties-on-XaConnectionFactory-td4679160.html http://activemq.2283324.n4.nabble.