Commit 74a02228 authored by kshinde's avatar kshinde

stock deallocation manual confirm connection not commiting

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192588 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 52b56d2a
...@@ -37,12 +37,12 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -37,12 +37,12 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
ConnDriver connDriver = null; ConnDriver connDriver = null;
try try
{ {
connDriver = new ConnDriver(); //connDriver = new ConnDriver();
//Changes and Commented By Bhushan on 13-06-2016 :START //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("Driver"); //conn = connDriver.getConnectDB("Driver");
conn = getConnection(); //conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END //Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); //conn.setAutoCommit(false);
retString = confirm( tranID, xtraParams, forcedFlag,conn); retString = confirm( tranID, xtraParams, forcedFlag,conn);
...@@ -154,8 +154,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -154,8 +154,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
{ {
try try
{ {
System.out.println("Inside finally commit"+ errString+"isLocal["+isLocal+"]");
if(errString != null && errString.trim().length() > 0 && isLocal) if(errString != null && errString.trim().length() > 0 && isLocal)
{ {
System.out.println("Inside finally commit"+ errString);
if(errString.indexOf("CONFSUCCES") > -1 ) if(errString.indexOf("CONFSUCCES") > -1 )
{ {
conn.commit(); conn.commit();
...@@ -460,6 +462,7 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -460,6 +462,7 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
System.out.println("Exception :" + e); System.out.println("Exception :" + e);
errString = e.getMessage(); errString = e.getMessage();
e.printStackTrace(); e.printStackTrace();
try try
{ {
conn.rollback(); conn.rollback();
......
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