4 Replies Latest reply on Aug 12, 2014 3:48 AM by Claus Ibsen

    JDBC ResultSet to Java Object/XML

    Vish Khalipe Newbie

      Hello,

      Is there a complete example for processing JDBC select resultset & converting each row to Java Object/XML ? I have tried following options without success -

      1. <to uri="jdbc:myDS?outputClass=com.sample.Customer" /> where com.sample.Customer has variables matching resultset column names with setter methods.

      2. <to uri="jdbc:myDS?outputClass=com.sample.CustomerList" /> where com.sample.CustomerList has private List<Customer> custList

      3. Result to xmlstream.

       

      Nothing works and the in split pattern BodyType remains java.util.LinkedHashMap. Pls share your views.