Commit 237c5747 authored by mjadhav's avatar mjadhav

close connection


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97987 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 197b73dc
......@@ -249,6 +249,15 @@ public class SalePersonIC extends ValidatorEJB implements SalePersonICRemote,Sal
valueXmlString.append("<state_code></state_code>");
valueXmlString.append("<station_stan_code></station_stan_code>");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
String getState="SELECT DESCR,COUNT_CODE FROM STATE WHERE STATE_CODE='"+stanCode+"'";
String stateDescr="";
String country="";
......@@ -266,6 +275,14 @@ public class SalePersonIC extends ValidatorEJB implements SalePersonICRemote,Sal
valueXmlString.append("<state_descr></state_descr>");
valueXmlString.append("<count_code></count_code>");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
String getStation="SELECT DESCR FROM STATION WHERE STAN_CODE='"+stancode+"'";
System.out.println("Sumit getStation "+getStation);
String stationDescr="";
......@@ -281,6 +298,13 @@ public class SalePersonIC extends ValidatorEJB implements SalePersonICRemote,Sal
{
valueXmlString.append("<station_descr></station_descr>");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
else
{
......
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