Hi 

Yes this component is actually not spring friendly when it comes to the method. 
We should improve this. Will create a JIRA ticket for it.

I do think its something like this:

<route>
        <from uri="direct:in" />
      <setHeader headerName="http.requestMethod" value="POST"/>
        <to uri="http:localhost:8080/test.jsp" /> 
</route>

Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: buchnerm [mailto:[EMAIL PROTECTED] 
Sent: 17. juli 2008 13:16
To: [email protected]
Subject: How to define a HTTP Post destination in a route in spring


this is the example on the camel site how to create a HTTP component:

new RouteBuilder() {
    public void configure() {
        from("direct:start")
           
.setHeader(org.apache.camel.component.http.HttpMethods.HTTP_METHOD,
org.apache.camel.component.http.HttpMethods.POST)
            .to("http://www.google.com";);
    }            
};

How to do the same in spring???

<route>
        <from uri="direct:in" />
        <to uri="http:localhost:8080/test.jsp" /> 
</route>

How to tell him to send it via post?? 

Thanks Max
-- 
View this message in context: 
http://www.nabble.com/How-to-define-a-HTTP-Post-destination-in-a-route-in-spring-tp18506233s22882p18506233.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to