Re: Camel ThreadPool maxQueueSize question

2015-11-20 Thread David Hoffer
This part I'm not clear on and it raises more questions. When using the JDK one generally uses the Executors factory methods to create either a Fixed, Single or Cached thread tool. These will use a SynchronousQueue for Cached pools and LinkedBlockingQueue for Fixed or Single pools. In the case o

Re: How to configure threadPoolProfile?

2015-11-20 Thread David Hoffer
Yup, my bad...has to be after all my routeContextRef's. -Dave On Thu, Nov 19, 2015 at 11:35 PM, Claus Ibsen wrote: > The order matters so you may need to change the order. The XSD schema > tells you the order and your editor should very likely be able to > validate the XML for you. > > On Fri,

Re: GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-20 Thread David Hoffer
Okay very good, that is what I thought but wanted to be sure. -Dave On Thu, Nov 19, 2015 at 11:42 PM, Claus Ibsen wrote: > No its only executed one time on the first poll. > > If you stop and remove the route, and add another similar route back, > then yeah its a new route/consumer and it will

Re: How to implement a peek ahead / skip processing in queue

2015-11-20 Thread apara
So, the question really is: Is there a way to control how messages are de-queued? In other words: Instead of this: 1) Message is dequeued 2) Load balancer cannot be sent onto the proper destination because it's queue is full 3) Load balancer blocks How can I implement: 1) Peek at the messag

Re: Columns order in ResultSetIterator

2015-11-20 Thread ftoresan
Sure, I'll do it! Best regards, Fabricio Toresan -- View this message in context: http://camel.465427.n5.nabble.com/Columns-order-in-ResultSetIterator-tp5774150p5774153.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Columns order in ResultSetIterator

2015-11-20 Thread Henryk Konsek
Hi, Can you create a pull request with the fix? It looks like a low hanging fruit. Cheers! pt., 20.11.2015 o 14:30 użytkownik ftoresan napisał: > I'm using the JDBC component, and when I retrieve the columns from a > ResultSetIterator using the method getColumns they are returned randomly. I >

Re: Camel Simple deal with line breaks

2015-11-20 Thread jamesburn
Hi Yogesh Thanks - yes, I guess I could use split. I was angling for a “Simple” based solution, or doing something when I convert the body to String. For now I’m stripping the trailing linebreak from the stdout in the shell script. I'll have to watch that in future. Thanks James -- View th

Unable to echo back the message to a client using websocket

2015-11-20 Thread Ton Swieb
Hi, I am trying to setup a websocket using Camel 2.16.0 that echo's back everything it receives. I had a look at http://camel.apache.org/websocket.html and something like: from("websocket://echo") .log(">>> Message received from WebSocket Client : ${body}") .transform().simple("${body}${bo

Columns order in ResultSetIterator

2015-11-20 Thread ftoresan
I'm using the JDBC component, and when I retrieve the columns from a ResultSetIterator using the method getColumns they are returned randomly. I expected to receive them in the same order they appear in the query projection. The problem is the use of a HashSet instead of a LinkedHashSet to return

How to set not string properties in rest dsl

2015-11-20 Thread dermoritz
I am using restlet component and want to set the property "restletRealm" on it. My problem is that all set Property methods only take a string as value. So i get an exception that string can not be converted to map if i set: restConfiguration().component("restlet").port(port).endpointProp

Re: Stop the route when there is no file on the SFTP component

2015-11-20 Thread Claus Ibsen
We could also add a route policy out of the box that checks for those empty messages and then auto stop a route. http://camel.apache.org/routepolicy There is a number of people asking how to stop a route from a route, or when to stop when there is no more data etc. http://camel.apache.org/how-can-

RE: Stop the route when there is no file on the SFTP component

2015-11-20 Thread Siano, Stephan
Hi, The file (and ftp) component has an option sendEmptyMessageWhenIdly. You could do the following: have one route that consumes from the FTP server (with sendEmptyMessagesWhenIdle set to true). From there send the messages (via direct) to another route. That route checks for empty message bod

RE: Stop the route when there is no file on the SFTP component

2015-11-20 Thread Ishada
I need to stop the route if there are no files on the endpoint. My sequence of steps are as follows 1> Get Payload form JMS Queue. 2>Delete and zip all the files on the SFTP server. 3>Move the payload to the SFTP. So in the 2nd step I am acquiring lock and once the files are deleted, I am moving t

RE: Stop the route when there is no file on the SFTP component

2015-11-20 Thread Siano, Stephan
Hi, Do you want to stop the route or do you want to stop the aggregation into a zip file? If you really want to stop the route, you can do that with the controlbus component. http://camel.apache.org/controlbus-component.html If you just want to aggregate files into a zipfile till you have co

Re: Camel Simple deal with line breaks

2015-11-20 Thread yogu13
How about using .split(body(String.class).tokenize("\n")) ?? Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Simple-deal-with-line-breaks-tp5774105p5774142.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Reuse Exchange between routes using "direct" and "direct-vm"

2015-11-20 Thread yogu13
Hi, I think this should work, considering direct-vm was developed for communicating across contexts within the same VM. Not sure how it would behave in Fuse though. Can you confirm both the bundles use the same version of camel core dependency ? Regards, -Yogesh -- View this message in contex

Stop the route when there is no file on the SFTP component

2015-11-20 Thread Ishada
0 down vote favorite I am trying to zip all the files on the SFTP endpoint and move it to some other location. It is working fine but if there are no files on the SFTP endpoint I need to stop the route. There is an option sendEmptyMessageWhenIdle on file endpoint to handle such scenario.