Commit 7be897e6 authored by piyush's avatar piyush

Changes done in ShiftProcess.java to remark the garbage collection as it was...

Changes done in ShiftProcess.java to remark the garbage collection as it was taking much time in processing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92504 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8493263a
......@@ -871,9 +871,18 @@ public class ShiftProcess extends ProcessEJB implements ShiftProcessLocal,ShiftP
errString = "";
}
else
{
// Modified by Piyush on 31/12/2012 to avoid error in ITM
//errString = itmdbAccessLocal.getErrorString("","VTPCOMPT","","",conn);
if ( xtraParams.indexOf("user_lang=") <= 0 )
{
errString = "";
}
else
{
errString = itmdbAccessLocal.getErrorString("","VTPCOMPT","","",conn);
}
}
return errString;
}
}
......@@ -928,9 +937,11 @@ public class ShiftProcess extends ProcessEJB implements ShiftProcessLocal,ShiftP
errString = genericUtility.createErrorString(e);
throw new ITMException(e);
}
dayslist.clear();
// Remarked by Piyush on 11/01/2013 [As the object is nullified in bellow statement so no need to clear]
//dayslist.clear();
dayslist = null;
System.gc();
// Remarked by Piyush on 11/01/2013 [As it was taking to much time in processing]
//System.gc();
}
System.out.println("[ShiftProcessEJB]counter=>"+counter);
System.out.println("Component Found!!!!!!!!");
......@@ -1209,7 +1220,8 @@ public class ShiftProcess extends ProcessEJB implements ShiftProcessLocal,ShiftP
}
catch(Exception e)
{e.printStackTrace();}
System.gc();
// Remarked by Piyush on 11/01/2013 [As it was taking to much time in processing]
// System.gc();
}
return "";
}//end of insertUpdateWorkShift
......
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