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
try
{
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)
{
conn.rollback();
}
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);
}
if (conn != null)
{
conn.close();
conn = null;
}
if(conStat != false)//Changed by wasim on 22-04-2016 to use boolean connection status
{
if (conn != null)
{
conn.close();
conn = null;
}
}
}
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