Re: Calling route via direct that does an HTTP POST

2014-02-28 Thread mister blinky
Lovely. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Calling-route-via-direct-that-does-an-HTTP-POST-tp5748043p5748092.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Calling route via direct that does an HTTP POST

2014-02-27 Thread Claus Ibsen
Instead of pollEnrich you can also just set the body to a constant of java.io.File which sometimes can be easier from direct setBody(constant(new File("somename"))) to http On Fri, Feb 28, 2014 at 8:17 AM, Claus Ibsen wrote: > Hi > > So are you saying you want to call a route with direct, that

Re: Calling route via direct that does an HTTP POST

2014-02-27 Thread Claus Ibsen
Hi So are you saying you want to call a route with direct, that reads a file, and sends the file to a HTTP POST? If so take a look at the content enricher EIP and the pollEnrich method http://camel.apache.org/content-enricher.html from direct pollEnrich to http On Thu, Feb 27, 2014 at 8:

Re: Calling route via direct that does an HTTP POST

2014-02-27 Thread mister blinky
Here's a bit more information. Here's an abbreviated route: from("direct:httpApiPost") .log("@@@1 header value of 'propsId': ${header.propsId}") .log(" here") .from("file:ooziejob.property?fileNam