Code example for MalformedObjectNameException

Methods: getMessage

0
        ObjectName configMBean;
        try { 
            configMBean = new ObjectName(config);
        } catch (MalformedObjectNameException e) {
            //notgonnahappen 
            WeblogicDiscover.getLog().error(e.getMessage(), e);
            return true; 
        } 
 
        //web.xml is already parsed into MBeans, 
        //just need to dig out the rtlog dir. 
 
        try { 
            WebDescriptorMBean descriptor = (WebDescriptorMBean)
                mServer.invoke(configMBean,
                               "findOrCreateWebDescriptor", 
                               new Object[0], new String[0]);
 
            FilterMBean[] filters =
                descriptor.getWebAppDescriptor().getFilters();