3 Replies Latest reply on Dec 11, 2012 4:40 PM by Keith Babo

    Service Method Overloading

    Eduardo de Vera Toquero Newbie



      I would like to know if it is possible to have method overloading on a Service and to have the ESB intelligently know which method to call based on the body of the message.


      So imagine:


      class A {...}


      class B {...}


      class Service {


           operation(A a) {...}


           operation(B b) {...}



      Having a JMS Camel binding reading for a queue were JMS Object messages containing either instances of A or B as their body are written into and calling one method or the other dependending on the message body payload.