Commit 072a97ef authored by jshaikh's avatar jshaikh

changed connection to transDB in QCOrderAprvConfWF .java

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@178054 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2a1afd08
......@@ -28,7 +28,7 @@ import org.apache.axis.encoding.XMLType;
@Stateless
public class QCOrderAprvConfWF implements QCOrderAprvConfWFRemote, QCOrderAprvConfWFLocal {
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag) throws RemoteException, ITMException {
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag, String userInfoStr) throws RemoteException, ITMException {
System.out.println("QCOrderAprvConfWF confirm method invocation");
System.out.println("Parameters ::: qorder_no["+qorder_no+"],empCodeAprv["+empCodeAprv+"],keyFlag["+keyFlag+"]");
String loginCode = "";
......@@ -42,9 +42,17 @@ public class QCOrderAprvConfWF implements QCOrderAprvConfWFRemote, QCOrderAprvCo
E12GenericUtility genericUtility = null;
try {
conn = connDriver.getConnectDB("DriverITM");
//conn = connDriver.getConnectDB("DriverITM");
UserInfoBean userInfo = new UserInfoBean(userInfoStr);
String transDB = userInfo.getTransDB();
if (transDB != null && transDB.trim().length() > 0)
{
conn = connDriver.getConnectDB(transDB);
}
connDriver = null;
conn.setAutoCommit(false);
empCodeAprv = empCodeAprv == null ? "" : empCodeAprv.trim();
String methodName = "";
......
......@@ -6,5 +6,5 @@ import javax.ejb.Local;
@Local
public interface QCOrderAprvConfWFLocal {
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag) throws RemoteException, ITMException;
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag, String userInfoStr) throws RemoteException, ITMException;
}
......@@ -6,5 +6,5 @@ import javax.ejb.Remote;
@Remote
public interface QCOrderAprvConfWFRemote {
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag) throws RemoteException, ITMException;
public String confirm(String qorder_no, String empCodeAprv, String loginSiteCode, String keyFlag, String userInfoStr) 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