Package org.rhq.common.jbossas.client.controller

Examples of org.rhq.common.jbossas.client.controller.DeploymentJBossASClient


    private boolean isEarDeployed() throws Exception {
        ModelControllerClient mcc = null;
        try {
            mcc = createModelControllerClient();
            final DeploymentJBossASClient client = new DeploymentJBossASClient(mcc);
            boolean isDeployed = client.isDeployment(EAR_NAME);
            return isDeployed;
        } finally {
            MCCHelper.safeClose(mcc);
        }
    }
View Full Code Here


        //Getting model controller client requires privs our callers might not have, but we want to provide this
        //function even to them.
        ModelControllerClient mcc = SecurityActions.createModelControllerClient();

        try {
            DeploymentJBossASClient client = new DeploymentJBossASClient(mcc);
            String earPath = client.getDeploymentPath(RHQConstants.EAR_FILE_NAME);
            return new File(earPath);
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            MCCHelper.safeClose(mcc);
View Full Code Here

        BufferedReader reader = null;
        ModelControllerClient mcc = null;

        try {
            mcc = getModelControllerClient();
            DeploymentJBossASClient client = new DeploymentJBossASClient(mcc);
            boolean isDeployed = client.isDeployment("rhq.ear");
            return isDeployed;

        } catch (Throwable t) {
            log.debug("Falling back to logfile check due to: ", t);
View Full Code Here

TOP

Related Classes of org.rhq.common.jbossas.client.controller.DeploymentJBossASClient

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.