From: <vy...@qu...> - 2002-12-16 10:20:11
|
I am using JBoss 3.2.0-beta-2, Postgres 7.2 and JDK 1.3.1 as=20 well as hibernate 1.2.=20 I am having difficulty committing any changes that I make because I get=20 error message saying: "java.sql.SQLException: You cannot commit with = autocommit set!"=20 bit of code:=20 [java]=20 Context ctx =3D new InitialContext();=20 SessionFactory sessions =3D = (SessionFactory)ctx.lookup("java:/HibernateFactory");=20 Session sess =3D sessions.openSession();=20 Vertex v =3D new Vertex();=20 v.setName( "SomeName" );=20 sess.save(v);=20 sess.close();=20 [/java]=20 This problem occurs with any settings in hibernate.properties=20 What needs for correct work without exeption.=20 Regards, AAP |