Commit 8c067d34 authored by wansari's avatar wansari

W16ASUN024 updated connection status parameter if true then commit transaction in finally


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101365 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a92487f5
...@@ -327,20 +327,27 @@ implements PalletReqConfLocal, PalletReqConfRemote ...@@ -327,20 +327,27 @@ implements PalletReqConfLocal, PalletReqConfRemote
try try
{ {
System.out.println("is error in finally" + isError); System.out.println("is error in finally" + isError);
System.out.println("Connection status in finally"+conStat);//Changed by wasim on 22-04-2016 to use boolean connection status
if (isError) if (isError)
{ {
conn.rollback(); conn.rollback();
} }
else else
{ {
conn.commit(); if(conStat != false)//Changed by wasim on 22-04-2016 to use boolean connection status
{
conn.commit();
}
errString = itmdbAccess.getErrorString("", "VMTRANSACN", "", "", conn); errString = itmdbAccess.getErrorString("", "VMTRANSACN", "", "", conn);
} }
if (conn != null) if(conStat != false)//Changed by wasim on 22-04-2016 to use boolean connection status
{ {
conn.close(); if (conn != null)
conn = null; {
} conn.close();
conn = null;
}
}
} }
catch (Exception e) catch (Exception e)
{ {
......
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