ERROR: SET AUTOCOMMIT TO OFF is no longer support
I have the following error when I try to start a transaction with a postgres database.
java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported
My code has a wonderful behaviour until a few moments. The only thing that I made is to install JBoss. The code always works fine with Tomcat 5.0 with jdbc and spring. Althought I have installed JBoss it´s not running.
The part of code in SQLException is thrown:
DefaultTransactionDefinition def = new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.P ROPAGATION_REQUIRED);
PlatformTransactionManager ptm = transactionTemplate.
getTransactionManager();
TransactionStatus status = ptm.getTransaction(def);
Please for your help anybody
|