try {
conn = dataSource.getConnection();
origIsolation = conn.getTransactionIsolation();
if (origIsolation == Connection.TRANSACTION_NONE) {
throw new JspTagException(
Resources.getMessage("TRANSACTION_NO_SUPPORT"));
}
if ((isolation != Connection.TRANSACTION_NONE)
&& (isolation != origIsolation)) {
conn.setTransactionIsolation(isolation);
}
conn.setAutoCommit(false);
} catch (SQLException e) {
throw new JspTagException(
Resources.getMessage("ERROR_GET_CONNECTION",
e.toString()), e);
}
return EVAL_BODY_INCLUDE;