Commit 0aebe47e authored by smanohar's avatar smanohar

In case of database exception on connection close without commit or rollback...

In case of database exception on connection close without commit or rollback oracle commits implicitly, incorporated rollback in exception block

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213424 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8fe16834
...@@ -155,6 +155,17 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf ...@@ -155,6 +155,17 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception ::"+e.getMessage()); System.out.println("Exception ::"+e.getMessage());
// 12-dec-2019 manoharan in case of database exception rollback is not happening
try
{
if(conn!=null && isLocal)
{
System.out.println("Exception isLocal Rollbacking..............");
conn.rollback();
}
}
catch(Exception ef) {}
// end 12-dec-2019 manoharan in case of database exception rollback is not happening
throw new ITMException(e); throw new ITMException(e);
} }
finally finally
...@@ -1516,10 +1527,8 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf ...@@ -1516,10 +1527,8 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf
} }
catch (Exception e) {
catch(Exception e) System.out.println("Exception :MiscDrcrConfirm :gbfRetrieveMiscDrcrRcp :SQLException :==>\n" + e.getMessage());
{
System.out.println("Exception :MiscDrcrConfirm :gbfRetrieveMiscDrcrRcp :SQLException :==>\n"+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
} }
......
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