Examples of boot()


Examples of org.apache.geronimo.kernel.Kernel.boot()

        proxy = new ArrayList();
//        builder.addResourceEnvRef("resourceenvref", List.class, localRef);

        SimpleReadOnlyContext context = new SimpleReadOnlyContext(builder.getContext());
        Kernel kernel = KernelFactory.newInstance().createKernel("test.kernel");
        kernel.boot();
        try {
            assertEquals(kernel, KernelRegistry.getKernel("test.kernel"));
            ObjectName proxyFactoryName = null;//referenceFactory.createAdminObjectObjectName("testAdminObject");
            GBeanData gbean = new GBeanData(proxyFactoryName, getGbeanInfo());
            gbean.setAttribute("Content", proxy);
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.boot()

        return suite;
    }

    public void testBuildConfiguration() throws Exception {
        Kernel kernel = KernelFactory.newInstance().createKernel("foo");
        kernel.boot();

        GBeanData store = new GBeanData(JMXUtil.getObjectName("foo:j2eeType=ConfigurationStore,name=mock"), MockConfigStore.GBEAN_INFO);
        kernel.loadGBean(store, this.getClass().getClassLoader());
        kernel.startGBean(store.getName());
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.boot()

    private File kernelState;

    public void testCreate() throws Exception {
        Kernel kernel = KernelFactory.newInstance().createKernel("test.kernel");
        assertEquals("No kernel should be registered", null, KernelRegistry.getKernel("test.kernel"));
        kernel.boot();
        assertEquals("test.kernel kernel should be registered", kernel, KernelRegistry.getKernel("test.kernel"));
        kernel.shutdown();
        assertEquals("No kernel should be registered", null, KernelRegistry.getKernel("test.kernel"));
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.boot()

    public void start(BundleContext bundleContext) throws Exception {
        if (bundleContext.getServiceReference(Kernel.class.getName()) == null) {
            StartupMonitor monitor = new LongStartupMonitor();
            monitor.systemStarting(System.currentTimeMillis());
            Kernel kernel = KernelFactory.newInstance(bundleContext).createKernel("geronimo");
            kernel.boot();
            monitor.systemStarted(kernel);
            Dictionary dictionary = null;//new Hashtable();
            kernelRegistration = bundleContext.registerService(Kernel.class.getName(), kernel, dictionary);
            //boot the root configuration
            Bundle bundle = bundleContext.getBundle();
View Full Code Here

Examples of org.apache.geronimo.kernel.Kernel.boot()

    private ServiceRegistration kernelRegistration;

    public void start(BundleContext bundleContext) throws Exception {
        Kernel kernel = KernelFactory.newInstance(bundleContext).createKernel("geronimo");
        kernel.boot();
        Dictionary dictionary = null;//new Hashtable();
        kernelRegistration = bundleContext.registerService(Kernel.class.getName(), kernel, dictionary);
        //boot the root configuration
        Bundle bundle = bundleContext.getBundle();
        URL plan = bundle.getEntry("META-INF/config.ser");
View Full Code Here

Examples of org.apache.geronimo.kernel.basic.BasicKernel.boot()

*/
public class GenericConnectionManagerGBeanSerializationTest extends TestCase {

    public void testSerialization() throws Exception {
        Kernel kernel = new BasicKernel("test");
        kernel.boot();
        AbstractName abstractName = new AbstractName(URI.create("foo/bar/1/car?name=ConnectionManager"));
        GBeanData data = new GBeanData(abstractName, GenericConnectionManagerGBean.GBEAN_INFO);
        data.setAttribute("transactionSupport", NoTransactions.INSTANCE);
        data.setAttribute("pooling", new SinglePool(10, 0, 5000, 5, false, false, true));
        kernel.loadGBean(data, this.getClass().getClassLoader());
View Full Code Here

Examples of org.apache.geronimo.kernel.basic.BasicKernel.boot()

*/
public class GenericConnectionManagerGBeanSerializationTest extends TestCase {

    public void testSerialization() throws Exception {
        Kernel kernel = new BasicKernel("test");
        kernel.boot();
        AbstractName abstractName = new AbstractName(URI.create("foo/bar/1/car?name=ConnectionManager"));
        GBeanData data = new GBeanData(abstractName, GenericConnectionManagerGBean.class);
        data.setAttribute("transactionSupport", NoTransactions.INSTANCE);
        data.setAttribute("pooling", new SinglePool(10, 0, 5000, 5, false, false, true));
        kernel.loadGBean(data, this.getClass().getClassLoader());
View Full Code Here

Examples of org.jboss.Main.boot()

      // Set the deploy prefix
     

      String[] args = {"-c", "defaulthotdeploy", "-Djboss.server.deployerBeansPrefix="+deployPrefix};
      Main main = new Main();
      main.boot(args);
      Server server = main.getServer();
      assertTrue("Server", server instanceof ServerImpl);
      ServerImpl serverImpl = (ServerImpl) server;

      // Validate that the expected deployment beans exist
View Full Code Here

Examples of org.mmtk.plan.generational.marksweep.GenMS.boot()

        VM vm_init = new VM();
        //CopyMS pl2 = (CopyMS)SelectedPlan.get();
        GenMS pl2 = (GenMS)SelectedPlan.get();
        Plan pl = SelectedPlan.ap.global();

        pl2.boot();
        pl.fullyBooted();
        org.apache.HarmonyDRLVM.mm.mmtk.SynchronizedCounter.boot();
        // toss LazyMmapper.boot(Address.zero(), 0 );
        HeapGrowthManager.boot(Extent.fromInt(1024*1024*1), Extent.fromInt(1024*1024*1) ); //set the java heap very small to force collections

View Full Code Here

Examples of org.mmtk.plan.marksweep.MS.boot()

        VM vm_init = new VM();
        //NoGC pl2 = (NoGC)SelectedPlan.get();
        MS pl2 = (MS)SelectedPlan.get();
        Plan pl = SelectedPlan.ap.global();

        pl2.boot();
        pl.fullyBooted();
        org.apache.HarmonyDRLVM.mm.mmtk.SynchronizedCounter.boot();
        // toss Mmapper.boot(Address.zero(), 0 );
        HeapGrowthManager.boot(Extent.fromInt(1024*1024*1), Extent.fromInt(1024*1024*1) ); //set the java heap very small to force collections

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.