3 Replies Latest reply on Nov 12, 2012 12:24 PM by Łukasz Dywicki

    Can Camel SQL Gateway be configured to store entire object in a table

    Jeff DeLong Master

      I have a Switchyard application, with one of the services a Bean service that uses JPA to store the values of a Java object in a table. I want to try the same thing using the Camel SQ Gateway, but not sure what the query should look like. This is the only example in the quickstarts:

       

      <camel:query>INSERT INTO greetings (name) VALUES (#)</camel:query>

       

      but it inserts the message string into the name column. Instead of a string in the message body, I have a custom Java object.