Processing data from a long-lived HTTP streaming URL

2014-07-13 Thread Peter Hicks
All, I have access to a third-party API which streams updates over HTTP. Each update is separated by a \r\n, so it's trivial to parse these in to individual messages on an ActiveMQ channel. I am having trouble convincing the Camel HTTP4 component to consume small chunks of data from the HTTP str

Re: How to use a public endpoint outside of camecontext?

2014-07-13 Thread simafengyun
Yes, the camel context is not defined inside of spring configuration file because akka has it's own camel context. So do you have any suggestion to fix it? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-a-public-endpoint-outside-of-camecontext-tp5752336p5753761.ht

Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Naveen Raj
Hi Guys, CamelContext.stop() stops your route where your route is not available right. What is the equivalent in spring configuration . I am confused with where as in the documentation it is mentioned here http://camel.apache.org/intercept.html

quesion about onException

2014-07-13 Thread simafengyun
Hi All, In spring xml, we can configure onException for camelcontext level. But in Java, I just see configure onException for route level. Is there anyway to configure onException for camel context level in java? -- View this message in context: http://camel.465427.n5.nabble.com/quesion-about-

Re: Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Claus Ibsen
Hi For stopping routes see this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html And just mean stop continue routing the *current* message. Camel and the bundle will keep running. On Sun, Jul 13, 2014 at 10:37 PM, Naveen Raj wrote: > Hi Guys, > CamelContext.s

Re: quesion about onException

2014-07-13 Thread Claus Ibsen
Hi In Java you can create a base abstract class (extending RouteBuilder) and do the global onException etc. in the configure method. And then for other routes, extend your base class, and call super.configure(); eg its just regular Java inheritance. On Mon, Jul 14, 2014 at 5:51 AM, simafengyun

Re: Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Naveen Raj
Thanks Claus, I would like to know if there is any equivalent to the for Java DSL and CamelContext.stop() equivalent in Spring configuration? Thanks, Naveen Raj -- View this message in context: http://camel.465427.n5.nabble.com/Hot-to-stop-a-route-using-spring-configuration-and-confused-wit

Re: Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Claus Ibsen
Hi Yes there is a .stop() in Java. And to stop Camel with spring then stop spring the usual way. On Mon, Jul 14, 2014 at 7:36 AM, Naveen Raj wrote: > Thanks Claus, > > I would like to know if there is any equivalent to the for Java DSL > and CamelContext.stop() equivalent in Spring configurat