We made a plain JDBC sample and it works fine.
Playing with it, we managed to figure out that the previous error to occured if our insertion operation was done within a transaction. The transaction is started by calling setAutoCommit(false) before doing the insertion (the insertion operation trigger a stored procedure).
Going back to our hibernate sample, we managed to remove the error by removing call to session.beginTransaction() & session.commit().
While this works, it does not allows transaction. We found the following tips that provides another solutions (changing the stored procedure execution mode constraint):
http://swssun00.isbe.ch/docs/java/jConn ... EADING5-89
Any other solutions is welcome.
Alexis