Examples of GBeanMBean


Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

        InputStream in = new FileInputStream(new File(unpackedCar, "META-INF/config.ser"));
        try {
            ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(in));
            GBeanData config = new GBeanData();
            config.readExternal(ois);
            return new GBeanMBean(config, null);
        } finally {
            in.close();
        }
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[]{}, cl);

 
        //axis gbean       
        GBeanMBean axisgbean = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        kernel.loadGBean(axisname, axisgbean);
        kernel.startGBean(axisname);
        File jarfile = new File(getTestFile("target/generated/samples/echo-jar/echo-ewsimpl.jar"));
        WSConfigBuilder wsconfBuilder = new WSConfigBuilder(getEARConfigBuilder(), store);
        File out = new File("target/temp");
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

    public void testLoad() throws Exception {
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[]{}, cl);
 
        //axis gbean       
        GBeanMBean axisgbean = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        kernel.loadGBean(axisname, axisgbean);
        kernel.startGBean(axisname);
        File jarfile = new File(getTestFile("target/generated/samples/echo-ewsimpl.jar"));
        kernel.getMBeanServer().invoke(axisname,
                "deployEWSModule",
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

        J2eeContext j2eeContext = new J2eeContextImpl("test.domain", "geronimo.server", "testapp", "testmodule", TARGET_NAME, NameFactory.JMS_RESOURCE);
        kernel = new Kernel(j2eeContext.getJ2eeServerName(), j2eeContext.getJ2eeDomainName());
        kernel.boot();
        selfName = NameFactory.getResourceComponentName(null, null, null, null, null, null, j2eeContext);

        GBeanMBean aow = new GBeanMBean(AdminObjectWrapper.getGBeanInfo());
        aow.setAttribute("adminObjectInterface", MockAdminObject.class);
        aow.setAttribute("adminObjectClass", MockAdminObjectImpl.class);
        kernel.loadGBean(selfName, aow);

        kernel.startGBean(selfName);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

    }

    public void testStartAxisService() throws Exception {
        ClassLoader cl = getClass().getClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[0], cl);
        GBeanMBean gbean = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        gbean.setAttribute("Name", "Test");
        kernel.loadGBean(name, gbean);
        kernel.startGBean(name);
        System.out.println(kernel.getMBeanServer().getAttribute(name, "state"));
        HttpURLConnection connection = (HttpURLConnection) AxisGeronimoUtils.getURL("/axis/index.html").openConnection();
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

    }

    public void testStartAxisService() throws Exception {
        ClassLoader cl = getClass().getClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[0], cl);
        GBeanMBean gbean2 = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        gbean2.setAttribute("Name", "Test");
        kernel.loadGBean(name2, gbean2);
        kernel.startGBean(name2);

        kernel.stopGBean(name2);
        kernel.unloadGBean(name2);
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

    }

    public void testdependencies() throws Exception {
        ClassLoader cl = getClass().getClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[0], cl);
        GBeanMBean gbean2 = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        gbean2.setAttribute("Name", "Test");
        kernel.loadGBean(name2, gbean2);
        kernel.startGBean(name2);

        kernel.stopGBean(name2);
        kernel.unloadGBean(name2);
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

        }
        File root = new File(getGeronimoHome());
        URL systemURL = new File(root, "bin/server.jar").toURL();
//        System.out.println("systemURL = " + systemURL);
        URL configURL = new URL("jar:" + systemURL.toString() + "!/META-INF/config.ser");
        GBeanMBean configuration;
        ObjectInputStream ois = new ObjectInputStream(configURL.openStream());
        try {
            GBeanData gbeanData = new GBeanData();
            gbeanData.readExternal(ois);
            configuration = new GBeanMBean(gbeanData, this.getClass().getClassLoader());
        } finally {
            ois.close();
        }

        // build a basic kernel without a configuration-store, our configuration store is
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

    }

    public void testLoad() throws Exception {
        kernel.getConfigurationManager().load(new File("modules/axis/test-resources/plans/plan1.xml").toURI());
        //axis gbean       
        GBeanMBean axisgbean = new GBeanMBean(WSConfigBuilder.getGBeanInfo());
        kernel.loadGBean(configBuilderName, axisgbean);
        kernel.startGBean(configBuilderName);
        kernel.stopGBean(configBuilderName);
        kernel.unloadGBean(configBuilderName);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.jmx.GBeanMBean

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        ClassLoader myCl = new URLClassLoader(new URL[]{}, cl);
        File jarfile = new File(getTestFile("target/generated/samples/echo-war/echo-ewsimpl.jar"));
 
        //axis gbean       
        GBeanMBean axisgbean = new GBeanMBean(AxisGbean.getGBeanInfo(), myCl);
        kernel.loadGBean(axisname, axisgbean);
        kernel.startGBean(axisname);
        WSConfigBuilder wsconfBuilder = new WSConfigBuilder(getEARConfigBuilder(), store);
        List uri = wsconfBuilder.buildConfiguration(null, jarfile, outFile);
        GBeanMBean config = store.getConfiguration((URI) uri.get(0));
        ConfigurationManager configurationManager = kernel.getConfigurationManager();
        ObjectName configName = configurationManager.load(config, null);
        kernel.getMBeanServer().invoke(configName, "startRecursive", null, null);

        //let us try to brows the WSDL of the service
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.