geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy" <>
Subject How to delete a GBean from a web app packaged inside an EAR app?
Date Sat, 01 Mar 2008 21:29:01 GMT
I am trying to disable the "Users and Groups" portlet by stopping the
corresponding AdminConsoleExtensionGBean extension GBean.  I am able to stop
the GBean programatically using the following code:

        AbstractNameQuery query = new AbstractNameQuery("
        Set gbeans = kernel.listGBeans(query);
        for(Object obj: gbeans) {
            if(!obj.toString().endsWith("UsersGroups")) continue;
            try {
            } catch (Exception e) {

The gbean query is giving me an abstract name "org.apache.geronimo.plugins
for this gbean.  However, adding <gbean load="false" > with this abstract
name under "org.apache.geronimo.plugins/console-tomcat/2.1/car" module in
config.xml does not seem to be stopping the gbean.
EditableKernelConfigurationManager.removeGBeanFromConfiguration() is
resulting in GBeanNotFoundException.  I am noticing that the GBean in
question is not directly in the EAR's configuration, but in one of the web
applications inside the EAR.  How to prevent loading of this gbean in this

View raw message