Package org.apache.geronimo.aries

Examples of org.apache.geronimo.aries.GeronimoApplicationManager


    public Artifact getConfigurationID(Object plan,
                                       JarFile jarFile,
                                       ModuleIDBuilder idBuilder)
        throws IOException, DeploymentException {
        GeronimoApplicationManager appManager = installer.getGeronimoApplicationManager();
        ApplicationMetadata metadata;
        try {
            metadata = appManager.getApplicationMetadata(jarFile);
        } catch (ManagementException e) {
            throw new DeploymentException("Error getting Aries Application manifest", e);
        }
        return ApplicationInstaller.getConfigId(metadata);
    }
View Full Code Here


                                                Collection<ConfigurationStore> configurationStores,
                                                ArtifactResolver artifactResolver,
                                                ConfigurationStore targetConfigurationStore)
        throws IOException, DeploymentException {

        GeronimoApplicationManager appManager = installer.getGeronimoApplicationManager();

        File ebaFile = new File(jarFile.getName());
       
        AriesApplication app = null;
        try {
            if (inPlaceDeployment) {
                app = appManager.createApplication(jarFile);
            } else {
                app = appManager.createApplication(FileSystem.getFSRoot(ebaFile));
            }
        } catch (Exception e) {
            throw new DeploymentException("Error creating Aries Application", e);
        }

        if (!app.isResolved() && getResolveOnDeploy()) {
            try {
                app = appManager.resolve(app);
            } catch (Exception e) {
                throw new DeploymentException("Error resolving Aries Application", e);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.aries.GeronimoApplicationManager

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.