Re: Custom fluent API in Java DSL

2015-12-08 Thread mailingl...@j-b-s.de
Hi! Can you give an example what type of method you want to add to the RouteBuilder? To my understanding if you need a custom DSL to lets say "reuse camel specific DSL sequences" its easier to write your own DSL completely hiding camel and rely on RouteBuilder internally as usual. But maybe I

Re: Camel-JMS JMS Selector getting overridden by new requests

2015-12-08 Thread Claus Ibsen
Yes if the endpoint uri is the same, then its cached in camel. On Tue, Dec 8, 2015 at 6:21 PM, ravi.4indra wrote: > are the endpoints shared between multiple threads even if the bean is of > protoype scope? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-

Re: Camel-JMS JMS Selector getting overridden by new requests

2015-12-08 Thread ravi.4indra
are the endpoints shared between multiple threads even if the bean is of protoype scope? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-JMS-Selector-getting-overridden-by-new-requests-tp5774806p5774838.html Sent from the Camel - Users mailing list archive at Nabble

Does Camel support full duplex (bidirectional) asynchronous routes?

2015-12-08 Thread chadkelly
I am attempting to configure Apache Camel 6.1.0 support full duplex (bidirectional) asynchronous routes for both UDP and TCP using Netty4. The requirement is for numerous (20+) existing systems (non-Camel) get proxy by Camel. The custom protocols are not supported by Camel, and nor is it a necessar

Custom fluent API in Java DSL

2015-12-08 Thread Milli
Hi, In our project, we are looking at adding custom fluent API to the existing JAVA DSL. As in, add few custom methods to the existing `RouteBuilder` api to make our own custom DSL. Is there a way to achieve this? If so, what is the best way to do this? Thanks and regards,

Can't use camel-geocoder in Karaf

2015-12-08 Thread Matt Sicker
Using Karaf 3.0.4 and Camel 2.16.1, I used "feature:install camel-geocoder" and get the following error when I try to use a geocoder endpoint: Caused by: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder at com.google.code.geocoder.Geocoder.geocode(Geocoder.java:56) at org.apache.camel.c

Re: Soap Body is Empty or Partial XML

2015-12-08 Thread ychawla
Thanks Aki, My first step in the Camel Route is to convert the body to a string. I was able to work around it by turning off streaming and since I need to modify the payload, I don't need streaming in this use case. Is it possible that the default for Streaming in older versions of Camel like 2.1

Re: Producer-consumer problem in Camel

2015-12-08 Thread hasikada
And this one would be the final solution, sorry for distribution: from("activemq:queue:requests").to("direct:processRequest?exchangePattern=InOut"); from("direct:handleUserRequest") .to(ExchangePattern.InOnly, "activemq:queue:requests") .

Re: Camel cxfrs proxy response

2015-12-08 Thread Sergey Beryozkin
Hi May be following this thread: http://camel.465427.n5.nabble.com/How-to-access-payload-from-REST-404-reply-in-cxfrs-td5773325.html can help ? Cheers, Sergey On 07/12/15 07:31, hoomanb wrote: Hi, I have exposed a cxfrs endpoint as my proxy rest service, once getting the request I'm calling

Re: Producer-consumer problem in Camel

2015-12-08 Thread hasikada
Hello again, this is the solution what I found after playing with seda, load balancer, wiretap: ExecutorService execExecutorService = new ThreadPoolBuilder(getContext()) .poolSize(1).maxPoolSize(1).maxQueueSize(10).build("InvoiceExecutorService"); from("direct:handleUs

Re: Limit number of JMS messages when processing asynchronously

2015-12-08 Thread jpeschke
Thank you four your ideas, Claus. We need the "asyncConsumer=true" setting as it dramatically boosts our performance (the broker already delivers the messages unsorted, so we have to re-order them anyway). But a route policy should do the trick - I have already thought about implementing a RouteP

Re: extracting HTTP query key values with Camel Rest and Jetty

2015-12-08 Thread Claus Ibsen
Ah see this FAQ http://camel.apache.org/faq If you are on a new camel version, use the new toD - if not use receipientList as in the FAQ On Tue, Dec 8, 2015 at 3:38 PM, Vero Kato wrote: > hi, sorry, I didn't get any answer about this. can someone from the Apache > Camel devs reply. > > On Sun, D

Re: extracting HTTP query key values with Camel Rest and Jetty

2015-12-08 Thread Vero Kato
hi, sorry, I didn't get any answer about this. can someone from the Apache Camel devs reply. On Sun, Dec 6, 2015 at 12:03 PM, Vero Kato wrote: > hi, I'm using Apache Camel with Camel REST and Camel Jetty. > > I don't have any problems when we expose our Rest API like this: > localhost:8080/rest/

Re: Limit number of JMS messages when processing asynchronously

2015-12-08 Thread Claus Ibsen
It depends a bit what you do with these messages in the Camel routes. The jms consumer is in fact sequential by default (so if the routing at some point becomes async, then it will wait for that inflight message to complete before it consumes the next). But you can turn that off with asyncConsumer

Re: Having issues with Multicast to Aggregation ...

2015-12-08 Thread jtoepfer
So I've tried a couple things, include adding a timeout, but that did not seem to work. Anyone have any other suggestions? - Josh Toepfer -- View this message in context: http://camel.465427.n5.nabble.com/Having-issues-with-Multicast-to-Aggregation-tp5774688p5774823.html Sent from the Ca

Limit number of JMS messages when processing asynchronously

2015-12-08 Thread jpeschke
Hello all, We have a system consuming messages at a high rate from a JMS queue asynchronously and parallel. For Performance reasons, we have a very high idle timeout, so normally our camel-based software never reconnects to the broker and stays connected. The problem is that it seems that the asyn

Re: Camel Without Maven

2015-12-08 Thread gbchriste
Claus Ibsen-2 wrote > Some of the commercial vendors offers an offline distribution that > includes all the dependencies. > http://camel.apache.org/commercial-camel-offerings.html > > But the suggestions here to setup an internal maven repo is a good > suggestion. There is a lot of Java software t

Camel/Spring - JavaConfig dont load CamelContext

2015-12-08 Thread Hubertus.Willuhn
Hi All, i have a problem with Camel in conjunction with Spring and Java configuration. All my routes getting picked up by Component Scanning but in the error log came up a Error: o.apache.camel.impl.DefaultCamelBeanPostProcessor -- No CamelContext defined yet so cannot inject into bean: org.apac

Re: Outputting time to logs for route to process a message

2015-12-08 Thread Claus Ibsen
Hi There is a created timestamp on the exchange when it was created, so you can access that and log. Though we could also consider adding an easy to use function in simple language to output it, so you can do: .log("This message took ${elapsed} ms to process") On Tue, Dec 8, 2015 at 9:51 AM,

Outputting time to logs for route to process a message

2015-12-08 Thread gilboy
Hi My route does some business processing - i.e. consumes messages from a topic, performs some business logic then sends message to a REST endpoint. After sending the message to the REST endpoint I have 1 final log statement to state the route is complete for this particular message. I would like