Commit caa997cf authored by dpawar's avatar dpawar

delete isError variable


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93967 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d68fcc53
......@@ -26,7 +26,7 @@ import javax.ejb.Stateless;
@Stateless
public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflushConfirmLocal,RcpBackflushConfirmRemote
{
boolean isError=false;
public String confirm(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
System.out.println("----------------confirmed method (RcpBackflushConfirm)---------");
......@@ -109,8 +109,8 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
}
System.out.println("errorString @@#---->>["+errString+"]");
System.out.println("isError---->>["+isError+"]");
if(errString !=null && errString.trim().length() == 0 && (!isError))
// System.out.println("isError---->>["+isError+"]");
if(errString !=null && errString.trim().length() == 0)
{
conn.commit();
errString = itmDBAccessEJB.getErrorString("","VTCONFIRM","","",conn);
......@@ -879,7 +879,6 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
{
System.out.println("Exception in retrieveReceipt method-------------["+e.getMessage()+"]");
retString=e.getMessage();
isError=true;
e.printStackTrace();
try {
conn.rollback();
......@@ -1352,7 +1351,6 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
{
System.out.println("Exception: @@@@@@@createQCOrder@@@@@@@ :["+e.getMessage()+"]");
errString=e.getMessage();
isError=true;
e.printStackTrace();
}
......@@ -1369,7 +1367,6 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
}catch(Exception e){
System.out.println("Exception getRelativeDate : "+e);
e.printStackTrace();
isError=true;
throw new ITMException(e);
}
return relativeDate;
......@@ -1960,7 +1957,6 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
catch(Exception e)
{
System.out.println("Exception : confirmBackflush() method------------");
isError=true;
errorCode=e.getMessage();
try {
conn.rollback();
......@@ -2002,13 +1998,11 @@ public class RcpBackflushConfirm extends ActionHandlerEJB implements RcpBackflus
{
System.out.println("SQL Exception In getDBRowCount method of RcpBackflushConfirm Class : "+e.getMessage());
e.printStackTrace();
isError=true;
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of RcpBackflushConfirm Class : "+ex.getMessage());
ex.printStackTrace();
isError=true;
}finally{
try{
......
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