Re: file component - file producer - setting file permissions

2015-11-19 Thread calyan.bandi
Thank you claus. It works as expected. Regards, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/file-component-file-producer-setting-file-permissions-tp5774036p5774100.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OSGi CamelHttpTransportServlet error

2015-11-19 Thread alexey-s
Clause, did not help the registration system component "servlet 2". The system still will take a component called "servlet". I think it is necessary to replace In this case bothers me a little higher in the condition statement "if". I found a solution: Call method endpointProperty. You're

How to get properties working in camelTest and spring

2015-11-19 Thread yuncil
I have a problem with the property-mechanism in JUnit-Tests. In my application I just have to annotade my config-class to use property placeholders. @Configuration @PropertySource("classpath:my.properties") public class MyServiceConfigurator extends WsConfigurerAdapter { ... } Afterwards I can

Re: OSGi CamelHttpTransportServlet error

2015-11-19 Thread alexey-s
Thank you, Claus Ibsen-2. I will try to register the component Servlet Component with the new name "servlet2". The fact that I use only one servlet in one CamelRoute. I think it will be interesting. Make several restConfiguration for different servlet. The idea is that you can make a few

Re: Why using camel routes (via activemq) in Apache karaf?

2015-11-19 Thread hayden74
Thanks Matt, this is what I have in mind... so basically, OSGi bundle to non-OSGi => JMS via ActiveMQ. The next question I guess would be OSGi service to non-Java platform, such as AngularJS. I probably should post another topic about this. -- View this message in context:

Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
Hello everyone, I used the search on this site to look for similar problems but failed to find it. Perhaps it is because I am asking it incorrectly? So currently, I have camel fetching data from my database... and then outputting it onto a text file. The table only has 3 rows, so it should end

Re: Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
I should add that instead of creating just three files for those three rows... it creates 18 files... the other 15 being duplicates of the first 3. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-fetch-multiple-data-from-database-once-then-stops-tp5774117p5774118.html

GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-19 Thread David Hoffer
What is the lifecycle of the GenericFileExclusiveReadLockStrategy#prepareOnStartup() method. I'm assuming that it will never be called more than once at startup...but is that correct? We store state in our custom GenericFileExclusiveReadLockStrategy class and the state is cleared when

How to configure threadPoolProfile?

2015-11-19 Thread David Hoffer
I'm trying to change the default thread pool using the following but then my app won't start it says the XML is invalid at the routeContextRef line but that line works fine before I added threadPoolProfile. What am I doing wrong? I'm using Camel 2.8.2. http://camel.apache.org/schema/spring;>

Re: Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
Solved it! Thanks to Claus's suggestion from this post http://camel.465427.n5.nabble.com/Stop-a-SQL-route-in-Apache-Camel-td5768252.html I changed the structure to this! from("timer:foo?period=5s") .to("sqlComponent:{{sql.selectNewTopic}}")

Camel ThreadPool maxQueueSize question

2015-11-19 Thread David Hoffer
I'm trying to understand the default Camel Thread Pool and how the maxQueueSize is used, or more precisely what's it for? I can't find any documentation on what this really is or how it's used. I understand all the other parameters as they match what I'd expect from the JDK...poolSize is the

Re: Spring-ws response when using split/aggregate

2015-11-19 Thread calyan.bandi
Hi, You may need to provide the reply aggregation strategy in the split() method itself. It should be something like below. Also i doubt that the MEP needs to be set before splitting. split(new MyExpression(), new SoapAttachmentAggregationStrategy()); I recently worked on a

Re: Splitting within transactions

2015-11-19 Thread fabrizio.spataro
Hello. I have a similar problem. How to resolve it? -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5774114.html Sent from the Camel - Users mailing list archive at Nabble.com.

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

2015-11-19 Thread web_nab...@sunilsamuel.com
Hello, I have two routes, one "direct-vm" and the other "direct". I create a property (or header) element in the exchange and I want that to be preserved when I call the next route, which is a "direct". But it seems that a new exchange is created. How can I preserve meta data among the

Re: How to configure threadPoolProfile?

2015-11-19 Thread Claus Ibsen
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, Nov 20, 2015 at 1:22 AM, David Hoffer wrote: > I'm trying to change the default thread pool using the

Re: Camel ThreadPool maxQueueSize question

2015-11-19 Thread Claus Ibsen
Yes its part of JDK as it specifies the size of the worker queue, of the thread pool (ThreadPoolExecutor) For more docs see http://camel.apache.org/threading-model.html Or the Camel in Action books On Fri, Nov 20, 2015 at 12:22 AM, David Hoffer wrote: > I'm trying to

Re: GenericFileExclusiveReadLockStrategy#prepareOnStartup() question

2015-11-19 Thread Claus Ibsen
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 be called again. On Fri, Nov 20, 2015 at 12:49 AM, David Hoffer wrote: > What is the lifecycle of > the

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

2015-11-19 Thread yogu13
Hello! What do you mean by "when I call the next route" does it mean calling another route internally from the first route ? Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Reuse-Exchange-between-routes-using-direct-and-direct-vm-tp5774124p5774126.html

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

2015-11-19 Thread web_nab...@sunilsamuel.com
Hello, Here is the use case. I have two Contexts, ContextA and ContextB. ContextA has the following route: route("direct:start").setHeader("myNewHeader","some value").to("direct-vm:nextB"); ContextB has the following route: route ("direct-vm:nextB").log ("${header.myNewHeader}") The

Camel Simple deal with line breaks

2015-11-19 Thread jamesburn
Hi I'm trying to get the stdout of an exec command to be used in my header. stdout is putting a linebreak on the end of the string I want to put into my header and this is causing trouble later on (difficulty with regex and I'm not sure what else). I see Simple strips whitespace by default

Transacted Mode Not working as expected Camel spring JMS

2015-11-19 Thread Felix Thomas
hello, I am not sure if I have implemented it correctly. I have the below route definition . But in case of exception in DeadLetterChannel the messages are acknowledged and removed from the queue. If I dont configure the deadletterchannel route then the ActiveMQ moves the messages to its

Re: Why using camel routes (via activemq) in Apache karaf?

2015-11-19 Thread Matt Sicker
In that case, I like using the REST DSL. On 19 November 2015 at 03:22, hayden74 wrote: > Thanks Matt, this is what I have in mind... so basically, OSGi bundle to > non-OSGi => JMS via ActiveMQ. The next question I guess would be OSGi > service to non-Java platform, such as