1 Reply Latest reply on Aug 19, 2011 10:54 AM by Claus Ibsen

    invoking methods on messages?

    jamie archibald Apprentice

      I was curious if there was a way to invoke methods on the incoming messages for performing choice() or setHeader() functions. I looked around on the website but couldn't find anything. Currently I have to write custom processors to do these types of simple jobs.




      class Person {

         public boolean isCool() {

           return false;










      .setHeader("IsCool", body().method("isCool"));