title: Apache Camel - JDBC Stored Procedures and transaction handling doubts
body: <p>I'm trying to build a small, proof of concept, Camel based application (running on FuseESB) which will possibly replace part of our existing integration system build on EJB's. 
  Right now, I'm trying to figure out the best way to handle the following scenario with apache camel:</p>
  
  <ol>
  <li>JMS text message comes in</li>
  <li>I have to execute a series of database operations based on the message content, invoking mainly stored precedures/functions</li>
  <li>from the results acquired by the db calls I have to construct a reply message and send it to specific jms queue.</li>
  <li>In case of an error/exception I would like to use a dead letter channel handling mechanism.</li>
  </ol>
  
  <p>I can build simple camel routes, handling errors and exceptions in camel looks easy too, what I don't get is how to use Camel SQL component (I understand that JDBC component cannot be a transactional client) to make all my db calls as part of single transaction. From what I found on the net Camel SQL component cannot be used to execute stored procedures - is it true? If it is, should I use Processors or simple pojo classes to do my jdbc calls? What about transactions in the case of using pojo or processor types? I would highly appreciate any pointers to resources describing how to handle such a use case. </p>