Examples of startApplication()


Examples of com.scooterframework.admin.ApplicationConfig.startApplication()

   
    //ApplicationConfig.noConsoleDisplay = true;
    //LogUtil.manualStopOn();
   
    ApplicationConfig ac = ApplicationConfig.configInstanceForApp();
    ac.startApplication();
    ac.endApplication();
  }

  /**
   * @param args
View Full Code Here

Examples of com.scooterframework.admin.ApplicationConfig.startApplication()

    ApplicationConfig.noConsoleDisplay = true;
    LogUtil.manualStopOn();

    ApplicationConfig ac = ApplicationConfig.configInstanceForApp();

        ac.startApplication();
   
    contextName = ac.getContextName();

    wc = EnvConfig.getInstance();
View Full Code Here

Examples of org.apache.openejb.cdi.OpenEJBLifecycle.startApplication()

            try {
                if (startup == null) {
                    //this should only be used for servlet tests
                    StartupObject startupObject = new StartupObject(new AppContext("none", SystemInstance.get(), Thread.currentThread().getContextClassLoader(), null, null, true), new AppInfo(), Collections.<BeanContext>emptyList());
                    lifecycle.startApplication(startupObject);
//                        lifecycle.startServletContext((ServletContext)startup);
                } else if (startup instanceof StartupObject) {
                    lifecycle.startApplication(startup);
//                        ((StartupObject)startup).getAppContext().setWebBeansContext(webBeansContext);
                }
View Full Code Here

Examples of org.apache.openejb.cdi.OpenEJBLifecycle.startApplication()

                    //this should only be used for servlet tests
                    StartupObject startupObject = new StartupObject(new AppContext("none", SystemInstance.get(), Thread.currentThread().getContextClassLoader(), null, null, true), new AppInfo(), Collections.<BeanContext>emptyList());
                    lifecycle.startApplication(startupObject);
//                        lifecycle.startServletContext((ServletContext)startup);
                } else if (startup instanceof StartupObject) {
                    lifecycle.startApplication(startup);
//                        ((StartupObject)startup).getAppContext().setWebBeansContext(webBeansContext);
                }
            } catch (Exception e) {
                //             logger.error(OWBLogConst.ERROR_0018, event.getServletContext().getContextPath());
                WebBeansUtil.throwRuntimeExceptions(e);
View Full Code Here

Examples of org.apache.openejb.cdi.OpenEJBLifecycle.startApplication()

        try {
            if (startup == null) {
                //this should only be used for servlet tests
                StartupObject startupObject = new StartupObject(new AppContext("none", SystemInstance.get(), Thread.currentThread().getContextClassLoader(), null, null, true), new AppInfo(),
                        Collections.<BeanContext> emptyList());
                lifecycle.startApplication(startupObject);
                //lifecycle.startServletContext((ServletContext)startup);
            } else if (startup instanceof StartupObject) {
                lifecycle.startApplication(startup);
                //((StartupObject)startup).getAppContext().setWebBeansContext(webBeansContext);
            }
View Full Code Here

Examples of org.apache.openejb.cdi.OpenEJBLifecycle.startApplication()

                StartupObject startupObject = new StartupObject(new AppContext("none", SystemInstance.get(), Thread.currentThread().getContextClassLoader(), null, null, true), new AppInfo(),
                        Collections.<BeanContext> emptyList());
                lifecycle.startApplication(startupObject);
                //lifecycle.startServletContext((ServletContext)startup);
            } else if (startup instanceof StartupObject) {
                lifecycle.startApplication(startup);
                //((StartupObject)startup).getAppContext().setWebBeansContext(webBeansContext);
            }
        } catch (Exception e) {
            //logger.error(OWBLogConst.ERROR_0018, event.getServletContext().getContextPath());
            WebBeansUtil.throwRuntimeExceptions(e);
View Full Code Here

Examples of org.apache.webbeans.lifecycle.StandaloneLifeCycle.startApplication()

         }
      };

      try
      {
         lifecycle.startApplication(null);
      }
      catch (Exception e)
      {
         throw new RuntimeException("Failed to start standalone OpenWebBeans container", e);
      }
View Full Code Here

Examples of org.apache.webbeans.spi.ContainerLifecycle.startApplication()

        originalLoader.set(parentLoader);
        Thread.currentThread().setContextClassLoader(new OwbSWClassLoader(parentLoader, archive, useOnlyArchiveResources, useOnlyArchiveResourcesExcludes));

        try
        {
            lifecycle.startApplication(null);
        }
        catch (WebBeansDeploymentException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }
View Full Code Here

Examples of org.apache.webbeans.spi.ContainerLifecycle.startApplication()

        beanManagerProducer.set(lifecycle.getBeanManager());

        OwbArquillianScannerService dummyScannerService = (OwbArquillianScannerService) webBeansContext.getScannerService();
        dummyScannerService.setArchive(archive);

        lifecycle.startApplication(null);

        return new ProtocolMetaData();
    }

    @Override
View Full Code Here

Examples of org.apache.webbeans.spi.ContainerLifecycle.startApplication()

        beanManagerProducer.set(lifecycle.getBeanManager());

        OwbArquillianScannerService dummyScannerService = (OwbArquillianScannerService) webBeansContext.getScannerService();
        dummyScannerService.setArchive(archive);

        lifecycle.startApplication(null);

        return new ProtocolMetaData();
    }

    public void undeploy(Archive<?> archive) throws DeploymentException
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.