Re: Executing camel route as AWS lambda function

2016-07-07 Thread sharma_arun_se
Any update on this...? According to my research, we can't run Camel route as AWS lambda function unless someone prove me wrong... - Regards, Arun Kumar (sharma_arun_se) Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect, Open Source Contributor. linkedin: http://

RabbitMQ component exclusive queues

2016-07-07 Thread bogdan.albei
Hi all, I recently moved from the amqp component to the rabbitmq component, but I can't find a way to pass to RabbitMQ the option of creating exclusive queues. Exclusive queues are used by only one connection and the queue will be deleted when that connection closes. I can't find the option as part

@Consumed exchange argument does not contain exceptions

2016-07-07 Thread Alberto
Hello, I need to set a field in a JPA entity only if there are not exceptions. I use @Consumed annotation. The method is always called and, in case of exception during routing, the exchange parameter does not contain any exception and isFailed() method is always false. Is it a "normal" behaviour

Re: @Consumed exchange argument does not contain exceptions

2016-07-07 Thread Claus Ibsen
See this FAQ http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html On Thu, Jul 7, 2016 at 1:11 PM, Alberto wrote: > > Hello, > > I need to set a field in a JPA entity only if there are not exceptions. > I use @Consumed annotation. The method is always called and, in case o

Camel file movement from one folder to another sometimes giving exception saying "Cannot rename file"

2016-07-07 Thread Pallavi G S
Below is the configured route : Suppose there are 1000 files in the folder SRC,after the route is executed,in the DEST folder i can see all the 1000 files. But once the file is picked and processed,the files are moved to .Succe

Host name in RabbitMQ endpoint with connectionFactory

2016-07-07 Thread vgaur
Hi, I am using camel-rabbitmq component and specifying my endpoint in property file something like this. /rabbitmq://localhost:5672/Exchange?connectionFactory=#customConnectionFactory&queue=queue&routingKey=key&exchangeType=direct&durable=true&autoDelete=false/ The host name I have specified in

Camel logging

2016-07-07 Thread mabahma
Hello i'm using a camel route .. and loggin using log4j.. # Root logger log4j.rootLogger=INFO, out log4j.logger.org.apache.camel=DEBUG How can i send the output of this logger into a different file ? I've tried # Root logger log4j.rootLogger=INFO, out,myFileAppender log4j.logger.org.

http4 client fails basicAuth whilst http works

2016-07-07 Thread ianwatson
Using the following routes it appears the http4 component does not work specifying the the authUsername/Password. Changing the component to http solves the issue, it appears therefore that this is a bug with http4. A workaround would be to use either the http component of set the Authorization he

Re: Host name in RabbitMQ endpoint with connectionFactory

2016-07-07 Thread souciance
Hi, I didn't quit understand. What do you mean specify twice? You just refer to that component like any other component...from("rabbitmq://). Where is the duplication? Best Souciance On Thu, Jul 7, 2016 at 3:13 PM, vgaur [via Camel] < ml-node+s465427n5784926...@n5.nabble.com> wrote: > Hi,

Re: RabbitMQ component exclusive queues

2016-07-07 Thread souciance
Hi, I cannot see that option either. Perhaps you can create jira for this on the Camel project and request it? Best Souciance On Thu, Jul 7, 2016 at 12:46 PM, bogdan.albei [via Camel] < ml-node+s465427n5784921...@n5.nabble.com> wrote: > Hi all, > I recently moved from the amqp component to the

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread souciance
Hi, What error do you get when you ran it with http4? Best Souciance On Thu, Jul 7, 2016 at 4:09 PM, ianwatson [via Camel] < ml-node+s465427n5784930...@n5.nabble.com> wrote: > Using the following routes it appears the http4 component does not work > specifying the the authUsername/Password. Cha

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread ianwatson
When using authUsername/Password a 401 error When setting the authorisation header directly the request is authorised. -- View this message in context: http://camel.465427.n5.nabble.com/http4-client-fails-basicAuth-whilst-http-works-tp5784930p5784933.html Sent from the Camel - Users mailing li

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread souciance
Just for the sake it, can you add &authenticationPreemptive=true and try? On Thu, Jul 7, 2016 at 4:16 PM, ianwatson [via Camel] < ml-node+s465427n5784933...@n5.nabble.com> wrote: > When using authUsername/Password a 401 error > > When setting the authorisation header directly the request is auth

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread ianwatson
Hmm this now seems to be working with/without the preemptive. -- View this message in context: http://camel.465427.n5.nabble.com/http4-client-fails-basicAuth-whilst-http-works-tp5784930p5784935.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread souciance
You mean it didn't work before but now it works and nothing has changed? Seems a bit strange. On Thu, Jul 7, 2016 at 4:39 PM, ianwatson [via Camel] < ml-node+s465427n5784935...@n5.nabble.com> wrote: > Hmm this now seems to be working with/without the preemptive. > > -

Re: http4 client fails basicAuth whilst http works

2016-07-07 Thread ianwatson
User error: I was specifying the following: from("direct://callRestEndpoint") .log(LoggingLevel.DEBUG, ">> Call REST") .setHeader("Content-Type").constant("application/json") .setHeader("Accept").constant("application/json") .setHeader("CamelHtt

Dynamically changing SQL with INSERT

2016-07-07 Thread jamie3
I am trying to automatically create the SQL query for inserting data into Oracle using SQL component. I have not found much documentation related to this. Any ideas? from("jms:queue:INPUT.Q") .routeId("ens reports log route") .convertBodyTo(String.class)

Re: camel-example-spring-boot-metrics

2016-07-07 Thread Camel Guy
Hello, A step-by-step guide that addresses this email can be found at http://ow.ly/NbbP3021CVe Enjoy, ~cg On Tue, Jul 5, 2016 at 4:15 PM, Camel Guy wrote: > Hello, > > I have a Graphite server running and tested. > camel-example-spring-boot-metrics' Application.java settings are correct > fo

Re: Camel logging

2016-07-07 Thread Quinn Stevenson
You didn’t include the configuration for myFileAppender - it’s a little difficult to guess what’s going on without a complete configuration. Can you share the entire log4j.properties file? > On Jul 7, 2016, at 7:23 AM, mabahma wrote: > > Hello > > i'm using a camel route .. and loggin using

Re: Host name in RabbitMQ endpoint with connectionFactory

2016-07-07 Thread vgaur
Hi, I endpoint uri starts with rabbitmq:// followed by the hostname. Port is optional but host name is mandatory. At the same time while specifying rabbitmq connection factory I am doing this is camel-context : /

Re: Camel file movement from one folder to another sometimes giving exception saying "Cannot rename file"

2016-07-07 Thread vgaur
Hi, I am not sure what are you trying to do but your destination Folder should not contain move and move failed option . At the same time change move to premove to avoid conflict. / / -- View this message in context: http://camel.465427.n5.nabble.com/Camel-file-movement-from-one-folder-to

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-07 Thread Tadayoshi Sato
Hmm, this just works for me. Note "productHelper" also has the cyclic dependency. On Wed, Jul 6, 2016 at 5:56 PM, Debraj Manna wrote: > No it is not working. > > I think the issue is not because of the separate xml files. It is because > jsonRPCProcessor is using myTemplate and myTemplate is def