Commit e7840eaa authored by kshinde's avatar kshinde

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@183224 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8aeb6eb7
...@@ -77,19 +77,24 @@ conn = getConnection(); ...@@ -77,19 +77,24 @@ conn = getConnection();
{ {
System.out.println("The Selected transaction is already confirmed"); System.out.println("The Selected transaction is already confirmed");
errString = itmDBAccessEJB.getErrorString("","VTMCONF1","","",conn); errString = itmDBAccessEJB.getErrorString("","VTMCONF1","","",conn);
return errString; //return errString;
} }
else else
{ {
errString = this.gbfRetrieveJournal(tranId,xtraParams,conn); errString = this.gbfRetrieveJournal(tranId,xtraParams,conn);
if(errString != null && errString.trim().length() > 0) if(errString != null && errString.trim().length() > 0)
{ {
return errString; //return errString;
} }
} }
} //end of try } //end of try
catch(Exception e) catch(Exception e)
{ {
try
{
conn.rollback();
}
catch(Exception t){}
System.out.println("Exception ::"+e.getMessage()); System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e); throw new ITMException(e);
} }
...@@ -422,10 +427,15 @@ conn = getConnection(); ...@@ -422,10 +427,15 @@ conn = getConnection();
} }
journalMap.clear(); journalMap.clear();
jourdetMap.clear(); jourdetMap.clear();
return errString ;
}//end of try }//end of try
catch(ITMException ie) catch(ITMException ie)
{ {
try
{
conn.rollback();
}
catch(Exception t){}
errString = itmDBAccessEJB.getErrorString("","VTDESNCONF","","",conn); errString = itmDBAccessEJB.getErrorString("","VTDESNCONF","","",conn);
System.out.println("Returnng String From gbfRetrieveJournal :"+errString); System.out.println("Returnng String From gbfRetrieveJournal :"+errString);
throw new ITMException(ie); throw new ITMException(ie);
...@@ -454,8 +464,10 @@ conn = getConnection(); ...@@ -454,8 +464,10 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : "+e);e.printStackTrace(); System.out.println("Exception : "+e);e.printStackTrace();
throw new ITMException(e);
} }
} }
return errString ;
}// end of gbf_retrieve_journal }// end of gbf_retrieve_journal
//gbf_post_journal - start - Normal Posting //gbf_post_journal - start - Normal Posting
String gbfPostJournal(String tranId,HashMap journalMap,ArrayList jourdetList,String xtraParams,Connection conn)throws RemoteException,ITMException String gbfPostJournal(String tranId,HashMap journalMap,ArrayList jourdetList,String xtraParams,Connection conn)throws RemoteException,ITMException
...@@ -1080,7 +1092,7 @@ conn = getConnection(); ...@@ -1080,7 +1092,7 @@ conn = getConnection();
errString = itmDBAccessEJB.getErrorString("","CONFSUCCES",""); errString = itmDBAccessEJB.getErrorString("","CONFSUCCES","");
System.out.println("JV Confirmed .."+errString); System.out.println("JV Confirmed .."+errString);
} // end of else } // end of else
return errString;
}// end ofTry - gbfPostJournal }// end ofTry - gbfPostJournal
catch(SQLException e) catch(SQLException e)
{ {
...@@ -1109,6 +1121,7 @@ conn = getConnection(); ...@@ -1109,6 +1121,7 @@ conn = getConnection();
throw new ITMException(e); throw new ITMException(e);
} }
} }
return errString;
}//method end //gbf_post_journal - end }//method end //gbf_post_journal - end
String otherSitePostJournal(String tranId,HashMap journalMap,ArrayList jourdetList,String xtraParams,Connection conn)throws RemoteException,ITMException String otherSitePostJournal(String tranId,HashMap journalMap,ArrayList jourdetList,String xtraParams,Connection conn)throws RemoteException,ITMException
......
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