Jetty overrides multiple securityHandles

2016-06-10 Thread martin.pelikan
Hello, I am trying to solve a problem with using multiple securityHandlers across multiple Proxies (XML files) running on the same port in karaf. Let's say proxies are configures like this, differs only in the id of the securityHandler and the role. Everything else is same for every XML file. Al

Re: Camel logs whole message body in case of org.apache.camel.CamelExchangeException "Cannot write body:"

2016-06-10 Thread arno noordover
Should we put the canonical name of the class in the message? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-logs-whole-message-body-in-case-of-org-apache-camel-CamelExchangeException-Cannot-write-body-tp5783240p5783832.html Sent from the Camel - Users mailing list arc

Re: Camel How to dequeue all messages accumulated every X minutes

2016-06-10 Thread Guls
I didn't look deep enough with Quartz earlier; Thanks. I got it working with below route. -- View this message in context: http://camel.46

How to reload camel context automatically in openshift 3.x using fis-java

2016-06-10 Thread ravishankarhassain
Hi All, I have previous experience in Apache Camel and JBoss Fuse and I am new to Openshift version 3.x I am trying to deploy a camel application which is developed using java dsl and spring DI. I am using an external properties file to load the consumer and producer endpoint in camel.In JBoss F

MS listener (Activemq) is not forwarding to onException-Clause

2016-06-10 Thread tippse
I wonder why the RuntimeCamelException ist not caught in the global onException Clause. But Exceptions in the myListener-Bean are forwarded as expected. Exception: Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - Failed to extract body due to: javax.

How to Mock Kafka Consumer Endpoint with Spock Framework Unit Test cases

2016-06-10 Thread ganga_camel
Hi, I am using Spock Framework to perform Unit Testing of Camel Routes. My first route consumes from Kafka Consumer Endpoint. I need to mock this end point and send the message to mock endpoint as part of the unit testing, below is how I have tried camelctx.getRouteDefinitions().get(0).adviceWith

RE: How to Mock Kafka Consumer Endpoint with Spock Framework Unit Test cases

2016-06-10 Thread Steve Huston
I am relatively new to camel, but until you get more experienced replies, I'd suggest your second path (replaceFromWith) but use something like seda:mockKafka - then send your test messages to seda:mockKafka. I'm under the impression that a mock can't produce a message, which is why you're getti

Generic camel routes - multiple instances

2016-06-10 Thread souciance
Hello, Are there any good places to read or examples to see, of how to build generic camel routes? For example: I have 10 routes which differ only in their endpoints and some headers and processors. I would like to create a generic route and have the endpoint URI and other parameters injected an

Re: Generic camel routes - multiple instances

2016-06-10 Thread souciance
Note, I use blueprint to start the routes and java dsl for the actual implementation of the routes. -- View this message in context: http://camel.465427.n5.nabble.com/Generic-camel-routes-multiple-instances-tp5783866p5783867.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Generic camel routes - multiple instances

2016-06-10 Thread Steve Huston
I use Camel SCR for this sort of thing. It works, but is probably not the only way. > -Original Message- > From: souciance [mailto:souciance.eqdam.ras...@gmail.com] > Sent: Friday, June 10, 2016 9:29 AM > To: users@camel.apache.org > Subject: Generic camel routes - multiple instances > >

Re: Generic camel routes - multiple instances

2016-06-10 Thread souciance
There is a cookbook on this the Camel developer cookbook but if people have more examples that would be great. -- View this message in context: http://camel.465427.n5.nabble.com/Generic-camel-routes-multiple-instances-tp5783866p5783872.html Sent from the Camel - Users mailing list archive at Na

RE: Generic camel routes - multiple instances

2016-06-10 Thread souciance
Does that mean for SCR you define multiple properties like below, one for each instance you want and the actual instancesiation is done auto-magically? What I mean is, if I want three routes with different parameters, do I define the three different Properties and that is it, or is there more to it

RE: Generic camel routes - multiple instances

2016-06-10 Thread Steve Huston
I am doing something like this, and plan to use a separate source file (like below) that instantiates the route builders (that are in other sources) for each set of routes that only vary by the properties. When SCR sets this up at run time it injects the properties values into the routes. > --

Re: Installation in Karaf fails since 2.17

2016-06-10 Thread djBo
Ed, Looking closer at the mentioned issue, it is clear this won't be fixed very soon. The camel-crew believes this is an ActiveMQ problem, whilst it is clear that it is the camel project at fault. Claus Ibsen wrote > Its really not a Camel problem. Its ActiveMQ itself that needs to do > better a

Debugging routes

2016-06-10 Thread nicolasduminil
Hello, The Camel documentation explains how to debug routes using unit tests. Does it mean that using Debugger is only possible in unit tests ? How could I do it in an application having an important number of routes, with no unit tests ? Kind regards, Nicolas -- View this message in context:

Re: Debugging routes

2016-06-10 Thread Claus Ibsen
Hi Did you see http://camel.apache.org/how-do-i-debug-my-route.html And there is tooling such as hawtio and JBoss Tools for Apache Camel that can debug Camel routes. On Fri, Jun 10, 2016 at 4:47 PM, nicolasduminil wrote: > Hello, > > The Camel documentation explains how to debug routes using u

Re: Debugging routes

2016-06-10 Thread nicolasduminil
Hi Claus, Yes, I did, this is the reason I'm saying that the documentation (i.e. http://camel.apache.org/how-do-i-debug-my-route.html) shows how to debug routes in unit tests. Hence my question: how to do it outside unit tests ? If you could answer it, I would be very obligated to you. As per haw

Re: Generic camel routes - multiple instances

2016-06-10 Thread Joseph Kampf
We do this all the time. This is simple dependency injection. We create a RouteBuilder class that has endpoints, processors, data formats and aggregators injected. Any parameter to the Java DSL can be injected, including bean reference and bean instances. Then we create multiple bean instance

Re: HELP Camel Splitter Question - thanks in advance

2016-06-10 Thread Gary
thank you ! would you know how to convert body in Spring XML ? I'm trying to find some reference ... thanks again -- View this message in context: http://camel.465427.n5.nabble.com/HELP-Camel-Splitter-Question-thanks-in-advance-tp5783810p5783893.html Sent from the Camel - Users mailing list a

Re: Rest to Stax not working

2016-06-10 Thread Joseph Kampf
I had a similar problem recently with JaxRS component. The output of the JaxRS was an instance of javax.ws.rs.core.Response. I needed to pull the Entity out of the response and set that to my Body before doing an XML parse. Here is the snippet I had: Response jaxrsResponse = newExchange.getIn(

Re: HELP Camel Splitter Question - thanks in advance

2016-06-10 Thread Gary
can you use tokenize with simple under split ??? if so it doesn't work . ${body}

Re: HELP Camel Splitter Question - thanks in advance

2016-06-10 Thread Gary
anyone? I'm really struggling with this, don't know if its a bug or me ? someone please give some input, mucho appreciated. INTERESTING, WHEN USING BELOW ROUTE this is the output.. ( it's like an ls -l on a file system ) this is cookie cutter basically, it shouldn't be that difficult. Sp

Re: HELP Camel Splitter Question - thanks in advance

2016-06-10 Thread Gary
this splitter route produces the same output as input. Why is this not working? ANYONE please... ${body} Split line

Re: Generic camel routes - multiple instances

2016-06-10 Thread souciance
Hi Joseph, Thanks for the input. Do you have an example blueprint for the actual declaration of the multiple bean instances? Thanks Souciance On Fri, Jun 10, 2016 at 9:33 PM, Joseph E. Kampf Jr. [via Camel] < ml-node+s465427n5783892...@n5.nabble.com> wrote: > We do this all the time. This is s

Re: HELP Camel Splitter Question - thanks in advance

2016-06-10 Thread souciance
By the way, to convert the body to string use: On Fri, Jun 10, 2016 at 10:49 PM, Gary [via Camel] < ml-node+s465427n5783897...@n5.nabble.com> wrote: > this splitter route produces the same output as input. Why is this not > working? ANYONE please... > > > > >

Re: Camel logs whole message body in case of org.apache.camel.CamelExchangeException "Cannot write body:"

2016-06-10 Thread arno noordover
In 2.17.2 and 2.18.0 a patch will be available. Only the name of the class will be returned in the exception message. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-logs-whole-message-body-in-case-of-org-apache-camel-CamelExchangeException-Cannot-write-body-tp5783240p5