FileDocCategorySizeDatePackage
StandardServerMBean.javaAPI DocGlassfish v2 API4519Fri May 04 22:32:10 BST 2007org.apache.catalina.mbeans

StandardServerMBean

public class StandardServerMBean extends com.sun.org.apache.commons.modeler.BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.core.StandardServer component.

author
Amy Roh
version
$Revision: 1.4 $ $Date: 2007/05/05 05:32:10 $

Fields Summary
private static MBeanServer
mserver
The MBeanServer for this application.
Constructors Summary
public StandardServerMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

exception
MBeanException if the initializer of an object throws an exception
exception
RuntimeOperationsException if an IllegalArgumentException occurs



    // ----------------------------------------------------------- Constructors


                                   
     
           

        super();

    
Methods Summary
public synchronized voidstore()
Write the configuration information for this entire Server out to the server.xml configuration file.

exception
InstanceNotFoundException if the managed resource object cannot be found
exception
MBeanException if the initializer of the object throws an exception, or persistence is not supported
exception
RuntimeOperationsException if an exception is reported by the persistence mechanism


        Server server = ServerFactory.getServer();
        if (server instanceof StandardServer) {
            try {
                ((StandardServer) server).storeConfig();
            } catch (Exception e) {
                throw new MBeanException(e, "Error updating conf/server.xml");
            }
        }