Commit 7c44821a authored by arawankar's avatar arawankar

Connection closing related changes in EmpLeaveConf.java

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@183763 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b51ca5f7
......@@ -3245,6 +3245,18 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
fVal5 = resultSet.getTimestamp("EXP_DATE");
fVal6 = resultSet.getDouble("BAL_DAYS");
}
if(resultSet != null)
{
resultSet.close();
resultSet = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(noRows > 0)
{
if( ((fVal6 < 0) || (fVal6 == 0 && (fVal3.before(mDate1) || fVal3.equals(mDate1)))))
......@@ -4493,6 +4505,13 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
pstmt.clearParameters();
}
while (newEffDate.after(lveToDate1));
//Modified by Anjali R. on[16/04/2018][To avoid resource leak issue][Start]
if(resultSet != null)
{
resultSet.close();
resultSet = null;
}
//Modified by Anjali R. on[16/04/2018][To avoid resource leak issue][End]
if(pstmt != null)
{
pstmt.close();
......
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