May I use commit option A and execute update sentences throw JDBC like this:
javax.sql.DataSource dataSource = (javax.sql.DataSource) homeFactory.lookup(
"java:/GlobalDS", javax.sql.DataSource.class);
Connection conn = null;
try {
conn = dataSource.getConnection();
PreparedStatement stmNota = conn .prepareStatement(
"UPDATE NOTES (NOTESTATE, DATE VALUES ('P','" +
util.dateNow() + "') WHERE ID = " + id.intValue());
stmNota.executeUpdate();
stmNota.close();
conn .close();
}
catch (Exception exc) {
exc.printStackTrace();
}