}
}
private static void executeService() throws SQLException {
int serviceID = MySQLConnectionInitializer.getServiceID(StatusMonitorConstants.MESSAGING);
AuthConfigBean authConfigBean = StatusMonitorConfigurationBuilder.getAuthConfigBean();
String userName = authConfigBean.getUserName();
tcpUserName = userName.replace('@','!');
//check whether login success
if (ServiceLoginClient.loginChecker(StatusMonitorConstants.MESSAGING_HOST, serviceID)) {
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, StatusMonitorAgentConstants.QPID_ICF);
properties.put(StatusMonitorAgentConstants.CF_NAME_PREFIX +
StatusMonitorAgentConstants.CF_NAME,
getTCPConnectionURL(tcpUserName,
authConfigBean.getPassword()));
if (log.isDebugEnabled()) {
log.debug("getTCPConnectionURL(username,password) = " +
getTCPConnectionURL(tcpUserName,
authConfigBean.getPassword()));
}
try {
InitialContext ctx = new InitialContext(properties);
// Lookup connection factory
QueueConnectionFactory connFactory =