Package com.sun.enterprise.jbi.serviceengine.install

Examples of com.sun.enterprise.jbi.serviceengine.install.Installer


     */
    public void onReady(ServerContext sc) throws ServerLifecycleException {
       
       
       
        Installer installer =
                ServiceEngineObjectFactoryImpl.getInstance().
                createInstaller();
        if(installer.isJBIInstalled()) {
            installer.setComponentName(DEFAULT_COMPONENT_NAME);
            try {
                boolean installedFlag = installer.isComponentInstalled();
                logger.log(Level.FINE, "Is Java EE Service Engine installed " + installedFlag);
               
                if(ServiceEngineUtil.isServiceEngineEnabled()) {
                    //Assumption here is if service engine is already installed,
                    // It will be resumed in its state by the JBI framework
                    if(!installedFlag) {
                        installer.install(null);
                        installer.start();
                    }
                }else {
                    logger.log(Level.FINEST, "Java EE Service Engine is disabled");
                    if(installedFlag) {
                        // If service engine is disabled, stop the service engine
                        try {
                            installer.stop();
                        } catch(Exception e) {
                        }
                    }
                }
            } catch (Throwable e) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.jbi.serviceengine.install.Installer

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.