Commit d66a3513 authored by pgole's avatar pgole

Updated ejb for changing connection driver to getConnection method.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101899 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f75fd0de
......@@ -112,7 +112,10 @@ public class Bond extends ValidatorEJB implements BondLocal, BondRemote
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -403,7 +406,10 @@ public class Bond extends ValidatorEJB implements BondLocal, BondRemote
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver=null;
if(objContext != null && objContext.trim().length()>0)
{
......
......@@ -120,7 +120,10 @@ public class CTFORM extends ValidatorEJB implements CTFORMLocal,CTFORMRemote
try
{
System.out.println(".....call validate method ....");
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -684,7 +687,10 @@ public class CTFORM extends ValidatorEJB implements CTFORMLocal,CTFORMRemote
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></header>");
System.out.println(".....call item change ....");
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver=null;
switch(currentFormNo)
......
......@@ -103,7 +103,10 @@ public class CloseCT extends ActionHandlerEJB implements CloseCTLocal, CloseCTRe
String errString = "",qorderNo = "",status = "",confirmed = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -98,7 +98,10 @@ public class ConfirmBond extends ActionHandlerEJB implements ConfirmBondLocal,Co
String errString = "",qorderNo = "",confirmed = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -98,7 +98,10 @@ public class ConfirmCTFORM extends ActionHandlerEJB implements ConfirmCTFORMLoca
String errString = "",qorderNo = "",qry = "",tranId = "",confirmed = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -100,7 +100,10 @@ public class ConfirmLop extends ActionHandlerEJB implements ConfirmLopLocal,Conf
String errString = "",qorderNo = "",confirmed = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -106,7 +106,10 @@ public class ConfirmLopAmd extends ActionHandlerEJB implements ConfirmLopAmdLoca
Timestamp validFromTsOld = null,validUptoTsOld = null;
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -97,7 +97,10 @@ public class ConfirmProofOfExp extends ActionHandlerEJB implements ConfirmProofO
String errString = "",qorderNo = "",confirmed = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
conn.setAutoCommit(false);
Timestamp currDate = null;
String currAppdate = null;
......
......@@ -112,7 +112,10 @@ public class LOP extends ValidatorEJB implements LOPLocal,LOPRemote
try
{
System.out.println(".....call validate method ....");
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -280,7 +283,10 @@ public class LOP extends ValidatorEJB implements LOPLocal,LOPRemote
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?><Root><header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></header>");
System.out.println(".....call item change ....");
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver=null;
switch(currentFormNo)
......
......@@ -112,7 +112,10 @@ public class LopAmd extends ValidatorEJB implements LopAmdLocal,LopAmdRemote
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -339,7 +342,10 @@ public class LopAmd extends ValidatorEJB implements LopAmdLocal,LopAmdRemote
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver=null;
if(objContext != null && objContext.trim().length()>0)
{
......
......@@ -110,7 +110,10 @@ public class ProofOfExp extends ValidatorEJB implements ProofOfExpLocal,ProofOfE
String siteCode = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver = null;
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -311,7 +314,10 @@ public class ProofOfExp extends ValidatorEJB implements ProofOfExpLocal,ProofOfE
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed by Poonam Gole for changing connection object :Start
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection() ;
//Changed by Poonam Gole for changing connection object :End
connDriver=null;
if(objContext != null && objContext.trim().length()>0)
{
......
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