Package org.apache.stratos.status.monitor.core.beans

Examples of org.apache.stratos.status.monitor.core.beans.AuthConfigBean


        }
    }

    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 =
View Full Code Here


     </authConfig>
     */
    private void initAuthentication(OMElement authConfigEle) throws StatusMonitorException {
        // initializing the and loading the authentication configurations
        Iterator authConfigChildIt = authConfigEle.getChildElements();
        authConfigBean = new AuthConfigBean();

        while (authConfigChildIt.hasNext()) {
            OMElement authConfigChildEle = (OMElement) authConfigChildIt.next();
            if (new QName(StatusMonitorConstants.CONFIG_NS, StatusMonitorConstants.JKS_LOCATION,
                    StatusMonitorConstants.NS_PREFIX).equals(authConfigChildEle.getQName())) {
View Full Code Here

        }
    }

    private static void executeService() throws SQLException {
        int serviceID = MySQLConnectionInitializer.getServiceID(StatusMonitorConstants.CEP);
        AuthConfigBean authConfigBean = StatusMonitorConfigurationBuilder.getAuthConfigBean();

        String userName = authConfigBean.getUserName();
        tcpUserName = userName.replace('@','!');


        //check whether login success
        if (ServiceLoginClient.loginChecker(StatusMonitorConstants.CEP_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()));

            InitialContext ctx;
            try {
                ctx = new InitialContext(properties);
View Full Code Here

TOP

Related Classes of org.apache.stratos.status.monitor.core.beans.AuthConfigBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.