Invoking Camel Routes from existing Servlets / POJOS

2012-03-25 Thread sushil_vsk5
Hello: I have an existing Servlet Container hosting some servlets which receive HTTP requests. Now I am planning to develop some Camel routes which will reside locally to my web application and shall all start using a "direct:" URI. In this regard, I want to be able to invoke my routes from my e

Re: Invoking Camel Routes from existing Servlets / POJOS

2012-03-25 Thread Claus Ibsen
On Sun, Mar 25, 2012 at 7:25 AM, sushil_vsk5 wrote: > Hello: > > I have an existing Servlet Container hosting some servlets which receive > HTTP requests. Now I am planning to develop some Camel routes which will > reside locally to my web application and shall all start using a "direct:" > URI. >

Re: Headers disappearing in RoutingSlip

2012-03-25 Thread Claus Ibsen
On Fri, Mar 23, 2012 at 6:48 PM, Greg Henley wrote: > Claus, > > When I try following the http://camel.apache.org/tracer example (using camel > 2.9.1) > >        Tracer tracer = new Tracer(); >        tracer.getFormatter().setShowBreadCrumb(false); >        tracer.getFormatter().setShowNode(false)

Re: diagram generator

2012-03-25 Thread Claus Ibsen
Hi Romain It looks like a nice start. Keep it up. Drawing nice looking diagrams can be a bit tricky, especially for bigger routes. But seems you are off to a very good start. I added a link to the project from the Camel user stories page https://cwiki.apache.org/confluence/display/CAMEL/User+Sto

Re: IBM MQ and CAMEL

2012-03-25 Thread Claus Ibsen
Hi I suggest to search this mail archive, as this has been discussed in the past how to use IBM MQ with Camel. And people have posted code snippets of their solutions. On Sat, Mar 24, 2012 at 2:06 PM, newbiee wrote: > Hi, > > I have a need to send and consume messages from IBM MQ. I have been

Re: Invoking Camel Routes from existing Servlets / POJOS

2012-03-25 Thread sushil_vsk5
Thanks a lot for that clarification. All parts are clear but what is not clear is, lets say my Camel Context is configured through Spring, how can I get access to a Producer Template from a POJO which is not managed by either Spring or Camel. Its just a plain old Java class. How do I get the handle

Re: Invoking Camel Routes from existing Servlets / POJOS

2012-03-25 Thread Claus Ibsen
On Sun, Mar 25, 2012 at 12:09 PM, sushil_vsk5 wrote: > Thanks a lot for that clarification. All parts are clear but what is not > clear is, lets say my Camel Context is configured through Spring, how can I > get access to a Producer Template from a POJO which is not managed by either > Spring or C

Re: Camel CXF Drops Headers

2012-03-25 Thread Willem Jiang
Hi I just checked the code of CxfBeanDestination, it doesn't copy the headers from the Camel in message to out message. I think we could do the same thing as CAMEL-2397[2]does, so I just fill a JIRA[2] for it. If you want to keep those headers in the old version of camel, you need to put the

Re: diagram generator

2012-03-25 Thread Romain Manni-Bucau
Hi Claus, thanks. i updated trunk to manage diagram name from routebuilder name. It should be easier when several route builders are defined. For the javadoc integration a doclet should do the trick (or a simple link to generated pictures). - Romain 2012/3/25 Claus Ibsen > Hi Romain > > It

Re: IBM MQ and CAMEL

2012-03-25 Thread newbiee
In the POM file, this is what I have: org.apache.camel camel-jms 2.5.0 com.ibm.mq com.ibm.mq 5.3 Is this all I need to use IBM MQ or Is there anything misssing that I need to add. If I search your site, it takes considerable time to find th

Re: IBM MQ and CAMEL

2012-03-25 Thread Christian Müller
If you already use WebSphere MQ, you should know you have to configure the connection factory in a different way... Please have a look at [1] and [2]. [1] http://camel.465427.n5.nabble.com/Can-Camel-communicate-over-IBM-MQ-sender-receiver-channels-td4429050.html [2] http://stackoverflow.com/questi

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread Christian Müller
Could you try to split up your route into two and test whether this works? garryHeader May be it's an issue when we define a throttler inside a splitter... Best, Christian On Fri, Mar 23, 2012 at 2:45 PM, garrydias wrote:

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread garrydias
Still throwing *Caused by: java.lang.IllegalStateException: The maximumRequestsPerPeriod must be a positive number, was: 0*. Are the namespaces in spring xml correct? Thanks again regards -- View this message in context: http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-pro

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread Christian Müller
The test also exists in Camel 2.9.1. Check out [1]. In your spring xml you didn't specify a default or the camel namespace (only the schema location). This could be the issue. Try adding the attributes: xmlns="http://www.springframework.org/schema/beans"; xmlns:camel=" http://camel.apache.org/schem

Apache >> Camel >> Time based Message Routing

2012-03-25 Thread sambardar
I want to implement and end-to-end chain in which Component A sends a routes to component B. Component B aggregates the statistics for an interval(e.g 15 minutes). When the 15 minutes elapse then Component B routes to component c. This means routing between component B and Component C is once every

Re: Apache >> Camel >> Time based Message Routing

2012-03-25 Thread Stéphane Deraco
Hi, Take a look at the aggregator EIP : http://camel.apache.org/aggregator2.html You can do : from("direct:A") .to("direct:B"); from("direct:B") .aggregate(header(MY_CORRELATION_KEY), new MyAggregationStrategy()).completionTimeout(15 * 60 * 1000) .to("direct:C"); Of course, you can aggregate o

CXF Confusion

2012-03-25 Thread PhilBurress
I'm creating a new camel route fronted by a CXF Web service. In my Web Service endpoint interface, if I have a method like this: The Request object does not get populated with the values passed in the message. However, if I change the method signature to take an Object instead, like this: ..

Re: Apache >> Camel >> Time based Message Routing

2012-03-25 Thread sambardar
Thanks. This looks like the pattern I need. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Time-based-Message-Routing-tp5593850p5594006.html Sent from the Camel - Users mailing list archive at Nabble.com.