Code example for MalformedObjectNameException

Methods: getMessage

0
        try { 
            return new ObjectName(server.getDiscover().getDomain(),
                                  attributes);
        } catch (MalformedObjectNameException e) {
            //wont happen. 
            throw new IllegalArgumentException(e.getMessage());
        } 
    } 
 
    public boolean getAttributes(MBeanServer mServer,
                                 ObjectName name) {
         
        super.getAttributes(mServer, name);
 
        super.getAttributes(mServer, getPoolConfig(), CONFIG_ATTRS);
 
        String app = name.getKeyProperty("ApplicationRuntime");
        if (app != null) {
            this.attrs.put(WeblogicMetric.PROP_APP, app);
        }