Re: correct way to provide regex in TokenizerExpression?

2015-10-29 Thread furchess123
Ok, here's the workaround I have implemented to go past the above issue... Some MyConstants.java file: public static final String SYSTEM_AGNOSTIC_NEWLINE_REGEX = "\r|\r\n|\n"; Splitter route configuration in a RouteBuilder implementation: TokenizerExpression tokenizerExpression = new

Re: correct way to provide regex in TokenizerExpression?

2015-10-29 Thread furchess123
Forgot to mention: when I inspect the exchange that is expected to contain the grouped N lines from the file that is being processed, I see that Camel inserts the actual regex string I provided to the tokenizer between the lines from the file! The exchange message looks like this: "[Message: linef

Re: correct way to provide regex in TokenizerExpression?

2015-10-29 Thread furchess123
I have played with it some more, and it seems clear that the tokenizer does NOT support regular expressions as advertised. Moreover, it seems that there is no way to write a system-agnostic file splitter that groups lines! I may be wrong, and if so, can anyone PLEASE show me the proper way to do it

Extraneous TCP connections with netty4

2015-10-29 Thread johndoe
Hi all, I have built a very simple route (which is deployed as an osgi bundle into ServiceMix), as follows: The unexpected behaviour, is the large number of sequential, cross-connected TCP connections that I can see on the TCP stack.

Re: Camel Simple expressions in Groovy

2015-10-29 Thread contactreji
Oops! Sorry I just corrected it as follows. Kinda confused as I am new to Groovy. *from("file:C:\\Users\\Mathews\\Desktop\\in").log(LoggingLevel.INFO,"BasicRouteLogger","Received File").setProperty("bodyBackup","Value of Body : $simple{body}").log("Done ").end()* I also tried *from("file:C:\\Use

move to failed folder, with onException in place

2015-10-29 Thread Hans Orbaan
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 following the file does not show up in the failed folder: onException(Exception.class).handled(false).to("seda:errors").end(); This does work, but is obviously not of any use: th

Re: trying to use Rest with restlet component still getting "Cannot find RestConsumerFactory in Registry"

2015-10-29 Thread dermoritz
i am using camels main.run() -- View this message in context: http://camel.465427.n5.nabble.com/trying-to-use-Rest-with-restlet-component-still-getting-Cannot-find-RestConsumerFactory-in-Registry-tp5773162p5773195.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Simple expressions in Groovy

2015-10-29 Thread Claus Ibsen
Please read again what I write. And see the alternative syntax box at http://camel.apache.org/simple On Thu, Oct 29, 2015 at 2:21 PM, contactreji wrote: > Hi Claus > > I tried > *from("file:C:\\Users\\Mathews\\Desktop\\in").log(LoggingLevel.INFO,"BasicRouteLogger","Received > File").setProperty(

Re: Camel Simple expressions in Groovy

2015-10-29 Thread contactreji
Hi Claus I tried *from("file:C:\\Users\\Mathews\\Desktop\\in").log(LoggingLevel.INFO,"BasicRouteLogger","Received File").setProperty("bodyBackup",simple(${body})).log("Done ").end() * Still it says *"C:\Program Files\Java\jdk1.8.0_51\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path

Re: Load Endpoints from XML file

2015-10-29 Thread Claus Ibsen
Yeah that is not supported. Loading from xml is only routes, eg stuff inside On Thu, Oct 29, 2015 at 2:09 PM, xlogger wrote: > I have followed this link and was able to load route from XML file without > restarting CamelContext > http://camel.apache.org/loading-routes-from-xml-files.html > > Her

Load Endpoints from XML file

2015-10-29 Thread xlogger
I have followed this link and was able to load route from XML file without restarting CamelContext http://camel.apache.org/loading-routes-from-xml-files.html Here is the route XML that I have tested successfully http://camel.apache.org/schema/spring";> I would like to modify my r

correct way to provide regex in TokenizerExpression?

2015-10-29 Thread furchess123
What is the correct way to supply the regular expression in TokenizerExpression? Per Claus's advise, I have tried the following to tokenize a file by lines while grouping lines - using a regex to support more than one type of line separators: TokenizerExpression tokenizerExpression = new

Re: How do I consume from ActiveMQ using the MQTT protocol

2015-10-29 Thread S-camel
Hi Claus, Thanks for the reply. I provided more details, I looked at the links but I cant find a direct solution. Apache camel: 2.14.1 IDE: Eclipse Route consuming from sandbox (works): from("mqtt:test?host=tcp://iot.eclipse.org:1883&subscribeTopicName=test&qualityOfService=ExactlyOnce"

Re: Camel Simple expressions in Groovy

2015-10-29 Thread Claus Ibsen
Try with "$simple{body}" as ${ } is groovy string that may interfere with that. On Thu, Oct 29, 2015 at 1:40 PM, contactreji wrote: > Hello > > I am trying to write camel routes in groovy dsl. I just wrote a simple route > like follows. I tried using Camel simple expression inside the groovy sy

Re: Camel Simple expressions in Groovy

2015-10-29 Thread contactreji
This works fine in Java DSL though. Surprised to see that the same thing works in Java but throws error in Groovy. - Reji Mathews Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss Fuse ESB | Mule ESB ) LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2

Camel Simple expressions in Groovy

2015-10-29 Thread contactreji
Hello I am trying to write camel routes in groovy dsl. I just wrote a simple route like follows. I tried using Camel simple expression inside the groovy syntax as documented on http://camel.apache.org/simple.html but it fails to recognize the syntax. How do we write Simple expresions in groovy *

Re: split().tokenize() w/regex-type token arg and grouping DOESN'T GROUP split items

2015-10-29 Thread furchess123
Thank you, Claus! -- View this message in context: http://camel.465427.n5.nabble.com/split-tokenize-w-regex-type-token-arg-and-grouping-DOESN-T-GROUP-split-items-tp5773166p5773186.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apache Camel Optaplanner Component

2015-10-29 Thread Bilgin Ibryam
Can you add here the full exception message pls. On 28 October 2015 at 09:33, AhmedAlaa333 wrote: > Hello, > > I tried to change the "OptaPlannerSyncSolverTest" function to solve Vehicle > Routing Problem instead of CloudBalancing > > CloudBalance: >CloudBalancingGenerator generator = ne

Re: Exception handling for netty4 producers

2015-10-29 Thread sykomaniac
Hi Claus, Thanks for the reply. I have configured this option as the protocol we are using is a little strange. Essentially when the server comes on line it expects to have a connection within 1 minute. If it does not get one it errors, we have a maximum of 3 attempts (3 minutes) before it turns i

Re: Exception handling for netty4 producers

2015-10-29 Thread Claus Ibsen
Have you set lazyChannelCreation=false or something, as it ought to be lazy by default. On Thu, Oct 29, 2015 at 10:16 AM, sykomaniac wrote: > Hi, > > I am using camel-netty4 as a producer. I take a message off of a Rabbit > queue and attempt to send it via netty to the server. This works perfec

Exception handling for netty4 producers

2015-10-29 Thread sykomaniac
Hi, I am using camel-netty4 as a producer. I take a message off of a Rabbit queue and attempt to send it via netty to the server. This works perfectly when the server is up an accepting requests. However, if the server is not responding when I enable the client I get the following error at start-u