Commit e059f18b authored by mchaudhari's avatar mchaudhari

remove commit from finally


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94587 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fc67e82c
...@@ -63,8 +63,7 @@ public class BomPostSave extends ValidatorEJB implements BomPostSaveLocal,BomPos ...@@ -63,8 +63,7 @@ public class BomPostSave extends ValidatorEJB implements BomPostSaveLocal,BomPos
pstmt1.setString(3, tranId); pstmt1.setString(3, tranId);
cnt1 = pstmt1.executeUpdate(); cnt1 = pstmt1.executeUpdate();
System.out.println(">>>>>>>successfully updated record bom post save cnt1:" + cnt1); System.out.println(">>>>>>>successfully updated record bom post save cnt1:" + cnt1);
pstmt1.close(); conn.commit();
pstmt1 = null;
}catch(Exception e) }catch(Exception e)
{ {
try { try {
...@@ -84,7 +83,8 @@ public class BomPostSave extends ValidatorEJB implements BomPostSaveLocal,BomPos ...@@ -84,7 +83,8 @@ public class BomPostSave extends ValidatorEJB implements BomPostSaveLocal,BomPos
{ {
try { try {
System.out.println(">>>>>>>>>>>>In finally Before Commit>>>"); System.out.println(">>>>>>>>>>>>In finally Before Commit>>>");
conn.commit(); pstmt1.close();
pstmt1 = null;
} catch (SQLException e) { } catch (SQLException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.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