camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: HTTP Endpoint construction in CamelSpringTest
Date Thu, 24 Jan 2013 20:51:17 GMT
On Thu, Jan 24, 2013 at 4:56 PM, Zemin Hu <> wrote:
> You are right. I was trying too hard to use CamelSpringTestSupport, thinking
> it might be simpler to start my route and to test it together. I am wrong.
> This CamelSpringTestSupport can do other tests, say file in Ibsen's book,
> but not for servlet.
> I am going to quit using CamelSpringTestSupport, just go straight with
> HttpUnit or HttpClient to do this kind of test. Besides, I also found it's
> hard to specify request method "GET/POST/PUT/DELETE" with ProducerTemplate.

The HTTP components of Camel often has a header that can control to
use GET / POST / etc.
So for that you need to send both body + headers with the producer template.

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message