Simplest way of persisting Java Objects using Apache Camel ?
- by sanre6
Can JDBC component be used for inserting Java objects into a Mysql database ? I want to store Java objects that i am routing through message exchanges into a database using spring xml .
i have never used hibernate before , so cannot use the hibernate or JPA components
Ex Code :
<from uri="bean:MessageProducer?method=send" /> /* bean sending the objects */
/* what code do i need to write for insertion of these Objects into testdb */
<to uri="jdbc:testdb"/>