Commit b887c68a authored by dsawant's avatar dsawant

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96086 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b678edd
......@@ -142,12 +142,23 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave
pstmt.executeUpdate();
pstmt.close();
pstmt = null;
conn.commit();
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
try {
System.out.println(">>>>>>>>>>>>In catch Before rollback>>>");
conn.rollback();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
finally
{
......@@ -155,6 +166,11 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave
{
if(pstmt != null)pstmt.close();
pstmt = null;
if(conn != null)
{
conn.close();
}
}catch(Exception d)
{
d.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment