camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Outram <apa...@nickoutram.name>
Subject MethodName in header is ignored by beanRef()
Date Fri, 17 Aug 2007 10:55:29 GMT

Settup:

from("seda:in").beanRef("myBean").to("seda:out);

with "myBean" defined in the spring application context as a pojo
implementing the meathod read(String) and sending a message:

template.send("seda:in", new Processor() {
  public void process(Exchange e) {
    Message in = exchange.getIn();
    in.setBody("Wibble");
    in.setHeader(BeanProcessor.METHOD_NAME, "read");
  }
});

doesn't result in a call to the read() method of the bean.
-- 
View this message in context: http://www.nabble.com/MethodName-in-header-is-ignored-by-beanRef%28%29-tf4285009s22882.html#a12197583
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message