Re: DUMP Camelcontext to XML DSL -- API ?

2015-07-21 Thread fxthomas
hello, Not sure what the question is? Are you talking about some tooling that can take Camel java code and covert to xml automatic? "I was thinking of a API call which can do it. That is dump the whole CamelContext things in XML . including bean information related things . If its a tool als

ftp consume files one by one

2015-07-21 Thread buffon
Hello, what is the option to consume files from ftp one by one in a sorted order. There is an option maxMessagesPerPoll=1, but then the files will be not sorted before consuming. Currently if the polling interval is short then the ftp consumer fetches the next file before the previous one has comp

Re: ftp consume files one by one

2015-07-21 Thread Claus Ibsen
Hi There is an option to turn on sorting before max limit. Set eagerMaxMessagesPerPoll=false On Tue, Jul 21, 2015 at 10:40 AM, buffon wrote: > Hello, > > what is the option to consume files from ftp one by one in a sorted order. > There is an option maxMessagesPerPoll=1, but then the files will

Re: ftp consume files one by one

2015-07-21 Thread buffon
Thanks a lot, Claus! -- View this message in context: http://camel.465427.n5.nabble.com/ftp-consume-files-one-by-one-tp5769647p5769650.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Lazy init for JMS-Component

2015-07-21 Thread jpeschke
Hi Claus, I'm using two routes, one for receiving, the one for sending (for acknowledging received messages). The problem is, as I understand it, that the camel route processor needs a JmsComponent Bean with the id "someQueueBean" to resolve an URL like "someQueueBean:queue:...", but which isn't t

Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
Thanks Ed, Until your message I though I was the only one who is trying this. I also think it's a classpath issue because as I said, I don't reach this issue with spring-boot. The following may help to diagnostic the problem. I put all the logs in TRACE while I'm performing the request from the s

Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
I just raised an issue for this : https://issues.apache.org/jira/browse/CAMEL-8993 On Tue, Jul 21, 2015 at 5:24 PM Arnaud Deprez wrote: > Thanks Ed, > Until your message I though I was the only one who is trying this. > > I also think it's a classpath issue because as I said, I don't reach this

Re: Problem with camel-cxf when Jolokia is installed

2015-07-21 Thread Ed Welch
Thanks Claus, You got the wheels turning a little, and I spent some more time with the debugger. I have found a section of Jetty code of interest, and I'm going to reach out to their mailing list to see what they think. I documented in a little more detail in the running pax-web issue i opened

STARTTLS does not work

2015-07-21 Thread paupachle
I'm using what is suggested in this thread http://camel.465427.n5.nabble.com/configuring-mail-endpoint-tp474166.html to add the STARTTLS command when using an SMTP endpoint to send an email. However if I do that the message does not even reach the SMTP server. I don't add the property mail.stmp.st

Stream Cache / spool file deletion when marshaling to JSON with Jackson

2015-07-21 Thread Karts
Hi, We're using Camel 2.15.2/Rest DSL/Restlet deployed as a war in a Jetty 9 container. Stream caching is enabled. For one of our routes, we retrieve and transform XML to an ArrayList> and then marshal to JSON. A cleaned up sample route is as follows: public void configure() throws Exception { r

Re: Having problems with CamelContext.addRoutes() and ActiveMQ

2015-07-21 Thread rwoolf
I have done as you said, and I use activemq.xml and import a camel.xml file that defines the route. But I still can't get things I put in the queue to then be processed via the route. activemq.xml http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.apache.org/schema/core";

Having a problem with the REST DSL (v2.15.2)

2015-07-21 Thread Patrick696
Hi all, I am trying to use the rest DSL to read a param (as instructed in the example): rest("/job") .consumes("application/json").produces("application/json") .get("/{id}").description("Find job by id").outType(Job.class) .param().name("id").type(

Re: Problem with camel-cxf when Jolokia is installed

2015-07-21 Thread Claus Ibsen
Hi You can configure CXF to be synchronous with ?synchronous=true on the camel endpoint uri. On Tue, Jul 21, 2015 at 7:54 PM, Ed Welch wrote: > Thanks Claus, > > You got the wheels turning a little, and I spent some more time with the > debugger. > > I have found a section of Jetty code of inte

Re: Having problems with CamelContext.addRoutes() and ActiveMQ

2015-07-21 Thread Claus Ibsen
Hi When you use the vm transport, then make sure to use the correct name as the name defined in the . If there is no name defined there, then give it a name. On Tue, Jul 21, 2015 at 10:17 PM, rwoolf wrote: > I have done as you said, and I use activemq.xml and import a camel.xml file > that defin

Re: Having a problem with the REST DSL (v2.15.2)

2015-07-21 Thread Claus Ibsen
Hi This is code for the upcoming Camel 2.16 where the rest-dsl has been improved to offer param documentation. For older releases then remove .param().name("id").type(path).description("The id of the job to get").dataType("int").endParam() On Wed, Jul 22, 2015 at 2:07 AM, Patrick696 wrote: > Hi

Re: STARTTLS does not work

2015-07-21 Thread Claus Ibsen
Hi Have you tried the debugMode option? On Tue, Jul 21, 2015 at 8:01 PM, paupachle wrote: > I'm using what is suggested in this thread > http://camel.465427.n5.nabble.com/configuring-mail-endpoint-tp474166.html > to add the STARTTLS command when using an SMTP endpoint to send an email. > However

Re: Stream Cache / spool file deletion when marshaling to JSON with Jackson

2015-07-21 Thread Claus Ibsen
Hi I logged a ticket with a potential fix https://issues.apache.org/jira/browse/CAMEL-8995 On Tue, Jul 21, 2015 at 9:50 PM, Karts wrote: > Hi, > > We're using Camel 2.15.2/Rest DSL/Restlet deployed as a war in a Jetty 9 > container. Stream caching is enabled. > > For one of our routes, we retrie

Apache Camel Endpoint

2015-07-21 Thread kethireddy
Hi How to validate source endpoint. I have a scenario as follows Requirement: Consume messages from RabbitMQ. I tried as from("rabbitmq://testhost:5672/xExchange?queue=xxxQueue&username=") .to("stream:out") in my case testhost

Re: Apache Camel Endpoint

2015-07-21 Thread Claus Ibsen
On Wed, Jul 22, 2015 at 7:46 AM, kethireddy wrote: > Hi > >How to validate source endpoint. I have a scenario as follows > > Requirement: Consume messages from RabbitMQ. > > I tried as > > from("rabbitmq://testhost:5672/xExchange?queue=xxxQueue&username=") >