Examples of ApplicationRegistry


Examples of com.sun.enterprise.server.ApplicationRegistry

                String location = j2eeApp.getLocation();
                String moduleDir =
                    DeploymentUtils.getRelativeEmbeddedModulePath(
                        location, moduleID);
             
                ApplicationRegistry registry =
                    ApplicationRegistry.getInstance();
                ClassLoader appLoader =
                    registry.getClassLoaderForApplication(appID);
                if (appLoader != null) {
                    Application appDesc = registry.getApplication(appLoader);
                    if (appDesc != null) {
                        Set wbds = appDesc.getWebBundleDescriptors();
                        WebBundleDescriptor wbd = null;
                        for (Iterator itr = wbds.iterator(); itr.hasNext(); ) {
                            wbd = (WebBundleDescriptor) itr.next();
View Full Code Here

Examples of com.sun.enterprise.server.ApplicationRegistry

    public Object getContainer(Object info) {

        Object[] params = (Object[])info;
        Class cls = (Class)params[0];

        ApplicationRegistry reg = ApplicationRegistry.getInstance();
        Application app = reg.getApplication(cls.getClassLoader());
        EjbCMPEntityDescriptor desc = app.getCMPDescriptorFor((String)params[1]);

        return reg.getContainer(desc);
    }
View Full Code Here

Examples of com.sun.enterprise.server.ApplicationRegistry

            isEnabled(j2eeAppBean.getConfigContext(), j2eeAppBean.getName())) {
            String id = j2eeAppBean.getName();
            String location = j2eeAppBean.getLocation();
            String resourceType = j2eeAppBean.getObjectType();

            ApplicationRegistry registry = ApplicationRegistry.getInstance();
            ClassLoader appLoader = registry.getClassLoaderForApplication(id);
            if (appLoader == null) {
                return null;
            }

            Application appDesc = registry.getApplication(appLoader);
            
            // Check to see if this app had deployed successfully (4663247)
            if(appDesc == null){
                Object[] params = { id };
                _logger.log(Level.SEVERE, "webcontainer.notLoaded", params);
View Full Code Here

Examples of com.sun.enterprise.server.ApplicationRegistry

     */
    private boolean enableWSMonitoring(String id)    {

       boolean result = true;

       ApplicationRegistry registry = ApplicationRegistry.getInstance();
            ClassLoader appLoader = registry.getClassLoaderForApplication(id);
            if (appLoader != null) {
                Application appDesc = registry.getApplication(appLoader);
            
                // Check to see if this app had deployed successfully (4663247)
                if(appDesc == null){
                    Object[] params = { id };
                    _logger.log(Level.SEVERE, "webcontainer.notLoaded",
View Full Code Here

Examples of com.sun.enterprise.server.ApplicationRegistry

            isEnabled(j2eeAppBean.getConfigContext(), j2eeAppBean.getName())) {
            String id = j2eeAppBean.getName();
            String location = j2eeAppBean.getLocation();
            String resourceType = j2eeAppBean.getObjectType();

            ApplicationRegistry registry = ApplicationRegistry.getInstance();
            ClassLoader appLoader = registry.getClassLoaderForApplication(id);
            if (appLoader == null) {
                return;
            }

            Application appDesc = registry.getApplication(appLoader);
            
            // Check to see if this app had deployed successfully (4663247)
            if(appDesc == null){
                Object[] params = { id };
                _logger.log(Level.SEVERE, "webcontainer.notLoaded",
View Full Code Here

Examples of com.volantis.mcs.application.ApplicationRegistry

            // Get the application name for this request.
            String applicationName = request.getApplicationName();

            // initialisation.
            ApplicationRegistry applicationRegistry =
                    ApplicationRegistry.getSingleton();

            // Get the factory method to enable the application context
            // to be initialised.
            ApplicationRegistryContainer applicationRegistryContainer =
                    applicationRegistry.getApplicationRegistryContainer(
                            applicationName);

            // We did not match our appication so we are either mariner
            // or an unknown application, either way we will use the
            // default application behaviour.
            if (applicationRegistryContainer == null) {
                applicationRegistryContainer =
                        applicationRegistry.getApplicationRegistryContainer(
                                applicationRegistry.DEFAULT_APPLICATION_NAME);

                // Still cannot find anything, give in.
                if (applicationRegistryContainer == null) {
                    throw new IllegalStateException(
View Full Code Here

Examples of com.volantis.mcs.application.ApplicationRegistry

            String applicationName = requestHeaders.getHeader(
                    "Mariner-Application");

            // Get the application Registry to enable application specific
            // initialisation.
            ApplicationRegistry applicationRegistry =
                    ApplicationRegistry.getSingleton();

            // Get the factory method to enable the application context
            // to be initialised.
            ApplicationRegistryContainer applicationRegistryContainer =
                    applicationRegistry.getApplicationRegistryContainer(
                            applicationName);

            // We did not match our appication so we are either mariner
            // or an unknown application, either way we will use the
            // default application behaviour.
            if (applicationRegistryContainer == null) {
                applicationRegistryContainer =
                        applicationRegistry.getApplicationRegistryContainer(
                                ApplicationRegistry.DEFAULT_APPLICATION_NAME);

                // Still cannot find anything, give in.
                if (applicationRegistryContainer == null) {
                    throw new IllegalStateException(
View Full Code Here

Examples of com.volantis.mcs.application.ApplicationRegistry

        servletContext = context;

        try {

            // Register the default application.
            ApplicationRegistry ar = ApplicationRegistry.getSingleton();
            ApplicationRegistryContainer arc =
                    new ApplicationRegistryContainer(
                            new DefaultInternalApplicationContextFactory(),
                            new DefaultServletApplicationContextFactory());

            ar.registerApplication(
                    ApplicationRegistry.DEFAULT_APPLICATION_NAME, arc);
            if(logger.isDebugEnabled()){
                logger.debug("Registered default application");
            }
View Full Code Here

Examples of com.volantis.mcs.application.ApplicationRegistry

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();
        // Register the default application.
        ApplicationRegistry ar = ApplicationRegistry.getSingleton();
        ApplicationRegistryContainer arc =
                new ApplicationRegistryContainer(
                        new DefaultInternalApplicationContextFactory(),
                        new DefaultServletApplicationContextFactory());

        ar.registerApplication(
                ApplicationRegistry.DEFAULT_APPLICATION_NAME, arc);

        servletContext = new ServletContextStub();
        volantis = new TestableVolantis() {
            // Javadoc inherited.
View Full Code Here

Examples of org.apache.qpid.server.registry.ApplicationRegistry

        if (options.isManagementMode())
        {
            store = new ManagementModeStoreHandler(store, options);
        }

        _applicationRegistry = new ApplicationRegistry(store);
        try
        {
            _applicationRegistry.initialise(options);
        }
        catch(Exception e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.