String userName = authConfigBean.getUserName();
String password = authConfigBean.getPassword();
int serviceID = MySQLConnectionInitializer.getServiceID(StatusMonitorConstants.MANAGER);
String authenticationServiceURL = StatusMonitorConstants.MANAGER_HTTPS +
StatusMonitorAgentConstants.AUTHENTICATION_ADMIN_PATH;
AuthenticationAdminStub authenticationAdminStub;
try {
authenticationAdminStub = new AuthenticationAdminStub(authenticationServiceURL);
ServiceClient client = authenticationAdminStub._getServiceClient();
Options options = client.getOptions();
options.setManageSession(true);
Boolean status;
status = authenticationAdminStub.login(userName, password,
StatusMonitorConstants.MANAGER_HOST);
ServiceContext serviceContext = authenticationAdminStub.
_getServiceClient().getLastOperationContext().getServiceContext();
// String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);
if (status) {
MySQLConnector.insertStats(serviceID, true);