9 Replies Latest reply on May 27, 2010 12:26 AM by Claus Ibsen

    custom TypeConverter

    Fernando Salceda Novice

      Hi, Im implementing a RecipientList that returns targets that are called depending on some data I would get from message body in following way:


           public List getTargets(

                     @PielValidationXPath("//xsd:pielInputInfo") PielInputInfo pielInputInfo,

                     @Body String body,

                     Exchange exchange) {




      The parameter conversion to "PielInputInfo" throws a exception because it can't found an appropiate TypeConverter from "?" to PielInputInfo.


      Now I'm trying to implement a custom type converter to append it to default converters and solve it. Could you give me some advice how to do that? An example related with my scenario would be helpful.