Here's what I was able to get working. Keep in mind this is Groovy, within a Grails' Camel Plugin Route. Process is a simple closure, with "it" being the Exchange.
class JobRoute { def configure = { println "Setting JobRoute Camel Router..." from("seda:job.contents").process{ Object body = it.getIn().getBody() // do some business logic with the input body println "Body ${body}" }. setHeader("Accept", "text/plain"). to("http://localhost:4567/converter/service"). to("bean:rawTextService?methodName=handleText") } } Ashwin Karpe wrote: > > Hi, > > You can do the following > from(seda) > .to(http) > .process(new Processor() { > public void process(Exchange exchange) throws Exception { > // do something... > } > }); > > This should do the trick. > > Cheers, > > Ashwin... > > -- View this message in context: http://old.nabble.com/Grails-Camel---pass-queue-message-to-HTTP-POST--tp27318113p27343479.html Sent from the Camel - Users mailing list archive at Nabble.com.