I am using JBoss 3.2.0-beta-2, Postgres 7.2 and JDK 1.3.1 as

well as hibernate 1.2.

I am having difficulty committing any changes that I make because I get

error message saying: "java.sql.SQLException: You cannot commit with autocommit set!"

bit of code:

[java]

Context ctx = new InitialContext();

SessionFactory sessions = (SessionFactory)ctx.lookup("java:/HibernateFactory");

Session sess = sessions.openSession();

Vertex v = new Vertex();

v.setName( "SomeName" );

sess.save(v);

sess.close();

[/java]

This problem occurs with any settings in hibernate.properties

What needs for correct work without exeption.

Regards, AAP

 

Reply via email to