|
Subject:
|
ERROR: SET AUTOCOMMIT TO OFF is no longer support
|
|
Posted By:
|
chemi
|
Post Date:
|
12/28/2005 5:03:29 AM
|
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.PROPAGATION_REQUIRED);
PlatformTransactionManager ptm = transactionTemplate. getTransactionManager(); TransactionStatus status = ptm.getTransaction(def);
Please for your help anybody
|
|