Hi Guys,

I experienced this weird problem today.

            con.setAutoCommit(false);

            stmt = con.prepareCall("{call ap_RecordLabel_upd(?,?,?,?)}");
            stmt.setInt(1, recordLabelId);
            stmt.setString(2, labelName.trim());
            stmt.setString(3, labelEmail.trim());
            stmt.setString(4, labelUrl.trim());

            stmt.executeUpdate();
            con.setAutoCommit(true);


When I tried to execute this code in a tag library, it wouldn't work.
However, after I'd commented out the setAutocommit(true/false)  it worked.
Can anyone tell me why this happened?

Cheers,

Rudi

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to