Hello,
i have method named as getSession
protected IDfSession getSession(String repository, String username, String userPassword) throws QTLException, DfException {
qtlMessageConstantsArguments[1] = "getSession";
qtlMessageConstantsArguments[2] = "DfException";
logger.debug(PropertyClass.getPropertyQTLMessage(QTLConstants.ENTER_IN_METHOD, qtlMessageConstantsArguments));
this.userName = username;
this.password = userPassword;
this.repository = repository;
if (idfSession == null) {
IDfSessionManager sMgr;
IDfLoginInfo loginInfo = clientX.getLoginInfo();
loginInfo.setUser(username);
loginInfo.setPassword(userPassword);
sMgr = idfClient.newSessionManager();
try {
sMgr.setIdentity(IDfSessionManager.ALL_DOCBASES, loginInfo);
idfSession = sMgr.getSession(repository);
} catch (DfServiceException e) {
logger.error(PropertyClass.getPropertyQTLMessage(QTLConstants.EXCEPTION_OCCURED_MESSAGE, qtlMessageConstantsArguments));
logger.debug(PropertyClass.getPropertyQTLMessage(QTLConstants.EXCEPTION_OCCURED_SESSION, qtlMessageConstantsArguments) + e.getMessage());
e.printStackTrace();
throw new QTLException(PropertyClass.getPropertyLabel(QTLConstants.GETSESSION_INVALID_CREDENTIALS));
}
if(idfSession!= null){
logger.debug(PropertyClass.getPropertyQTLMessage(QTLConstants.CREATED_SESSION, qtlMessageConstantsArguments));
}
}
logger.debug(PropertyClass.getPropertyQTLMessage(QTLConstants.EXIT_FROM_METHOD, qtlMessageConstantsArguments));
}
i have added logger,debug statement to verify application , now i am getting session information within starting debug statement and ending one ,
so how can i remove it
Regards
Mayur Mitkari