Commit 3170f197 authored by prane's avatar prane

cusrsor and statement closed and nulled for multitenancy

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195738 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1cc307dd
...@@ -68,6 +68,10 @@ public class WoStockStatus { ...@@ -68,6 +68,10 @@ public class WoStockStatus {
serviceCode = rs.getString("SERVICE_CODE"); serviceCode = rs.getString("SERVICE_CODE");
compName = rs.getString("COMP_NAME"); compName = rs.getString("COMP_NAME");
} }
rs.close();//[rs and pStmt closed and nulled by Pavan R]
rs = null;
pStmt.close();
pStmt = null;
sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? "; sql = "SELECT SERVICE_URI FROM SYSTEM_EVENT_SERVICES WHERE SERVICE_CODE = ? ";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1,serviceCode); pStmt.setString(1,serviceCode);
...@@ -76,6 +80,10 @@ public class WoStockStatus { ...@@ -76,6 +80,10 @@ public class WoStockStatus {
{ {
serviceURI = rs.getString("SERVICE_URI"); serviceURI = rs.getString("SERVICE_URI");
} }
rs.close();//[rs and pStmt closed and nulled by Pavan R]
rs = null;
pStmt.close();
pStmt = null;
Service service = new Service(); Service service = new Service();
Call call = (Call)service.createCall(); Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(serviceURI)); call.setTargetEndpointAddress(new java.net.URL(serviceURI));
...@@ -116,6 +124,11 @@ public class WoStockStatus { ...@@ -116,6 +124,11 @@ public class WoStockStatus {
{ {
try try
{ {
if(rs != null)
{
rs.close();
rs = null;
}
if (pStmt != null ) if (pStmt != null )
{ {
pStmt.close(); 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