Package com.sun.enterprise.server.pluggable

Examples of com.sun.enterprise.server.pluggable.PluggableFeatureFactory


                ConfigContext ctx =
                        ApplicationServer.getServerContext().getConfigContext();
                TransactionService txnService = null;
                txnService =
                        ServerBeansFactory.getTransactionServiceBean(ctx);
                PluggableFeatureFactory pff = ApplicationServer.getServerContext().
                        getPluggableFeatureFactory();
                TransactionRecovery transactionRecoveryService =
                        pff.getTransactionRecoveryService();
                //transactionRecoveryService.start(context) ;
                RecoveryManager.registerTransactionRecoveryService(transactionRecoveryService);
                if (!txnService.isAutomaticRecovery()) {
                    return;
                }
View Full Code Here


    }
      }
      throw new ConfigException(ex.getMessage());
        }

        PluggableFeatureFactory ff = PluggableFeatureFactoryImpl.getFactory();

        context.setPluggableFeatureFactory(ff);
        return context;
    }
View Full Code Here

        if (deployService != null) {
            return deployService;
        }

        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        DeploymentFactory dFactory = featureFactory.getDeploymentFactory();
        deployService = dFactory.createDeploymentService(configContext);
        return deployService;
    }
View Full Code Here

        // Start the lazy startup framework.
        // This will open up network ports and block any incoming connections
        // till server startup completes.
        try {
            super.setServerContext(context);
            PluggableFeatureFactory pff = context.getPluggableFeatureFactory();
            ASLazyKernel lazyStartupKernel = pff.getASLazyKernel();
            server.setOnDemandStatus(lazyStartupKernel.startASSocketServices(context)) ;
        } catch (Exception e) {
            server.setOnDemandStatus(false);
            // Quick startup is not enabled. Start with normal sequence.
        }
View Full Code Here

        if (targetFactory != null) {
            return targetFactory;
        }

        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        DeploymentFactory dFactory = featureFactory.getDeploymentFactory();
        targetFactory = dFactory.createDeploymentTargetFactory();
        return targetFactory;
    }
View Full Code Here

     *
     * @return   an application loader for this manager
     */
    protected AbstractLoader getLoader(String id) {
        // get the appropriate loader
        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        ApplicationLoaderFactory appLoaderFactory =
            featureFactory.getApplicationLoaderFactory();
        ApplicationLoader appLoader =
            appLoaderFactory.createApplicationLoader(id,
                this.parentClassLoader,(AppsManager)this.configManager);
        _logger.log(Level.FINEST,"ApplicationLoader "+appLoader);
        return appLoader;
View Full Code Here

                //_logger.log(Level.INFO, "mbean.notif_failed");
            }

        }
        ServerContext svcCtx = ApplicationServer.getServerContext();
        PluggableFeatureFactory featureFactory = null;
        if (svcCtx != null) {
            featureFactory = svcCtx.getPluggableFeatureFactory();
           
            // see if there were any non reconfigurabled changes
            NotificationFactory nFactory =
                featureFactory.getNotificationFactory();
            RestartEventHelper helper = nFactory.createRestartEventHelper();
            helper.setRestartRequiredForTarget(context, changeList);
           
        }
        stack.resetEvents();
View Full Code Here

        }
       
        mServer            = server;
        loadBalancerConfig = loadBalancerConfigIn;
       
        final PluggableFeatureFactory featureFactory =
                ApplicationServer.getServerContext().getPluggableFeatureFactory();
       
        lbFactory = featureFactory.getLBFeatureFactory();
        if ( lbFactory == null ) {
            throw new IllegalStateException();
        }
    }
View Full Code Here

    public static AMXSupportExtensionFeature getAMXPluggableFeature() {
        ServerContext sc = ApplicationServer.getServerContext();
        if (sc == null)
            return null;
        PluggableFeatureFactory pFactory = ApplicationServer.getServerContext().getPluggableFeatureFactory();
        AMXSupportExtensionFeature amxExt = pFactory.getAMXSupportExtension();
        return amxExt;
    }
View Full Code Here

     * We should revisit this to make sure this will work in multi-threaded environment,
     * i.e. concurrent deployment.
     */
    public static DeployEventListenerHelper getDeployEventListenerHelper() {

        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        DeploymentFactory dFactory = featureFactory.getDeploymentFactory();
        DeployEventListenerHelper helper =
                dFactory.createDeployEventListenerHelper();
        return helper;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.server.pluggable.PluggableFeatureFactory

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.