H
harryos
hi
i am learning to create web app talking to database using
mysql ,tomcat6 in NetBeansIDE.I have a java class that makes a
reservation and calls a connection.commit() .This causes an error like
java.sql.SQLException: Can't call commit when autocommit=true
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:914)
com.mysql.jdbc.Connection.commit(Connection.java:2273)
myapp.Reservations.reservationExist(Reservations.java:387)
Do i need to set autocommit =false in tomcat?I checked the server.xml
from the IDE,but couldn't figure out exactly where i should edit to
make autocommit false.
can someone help?
thanks
harry
i am learning to create web app talking to database using
mysql ,tomcat6 in NetBeansIDE.I have a java class that makes a
reservation and calls a connection.commit() .This causes an error like
java.sql.SQLException: Can't call commit when autocommit=true
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:914)
com.mysql.jdbc.Connection.commit(Connection.java:2273)
myapp.Reservations.reservationExist(Reservations.java:387)
Do i need to set autocommit =false in tomcat?I checked the server.xml
from the IDE,but couldn't figure out exactly where i should edit to
make autocommit false.
can someone help?
thanks
harry