Code example for MalformedObjectNameException

Methods: printStackTrace

0
    protected void onSetUp() throws Exception {
         
        try { 
            ton = new ObjectName("org.apache.cxf:Type=testInstrumentation");
        } catch (MalformedObjectNameException e) {            
            e.printStackTrace();
        } catch (NullPointerException e) {            
            e.printStackTrace();
        } 
        
         
        //create the mbean and register it 
        ModelMBeanInfo mbi = getMBeanInfoFromAssembler();
         
        RequiredModelMBean rtMBean;
         
        rtMBean = (RequiredModelMBean)server.instantiate(
            "javax.management.modelmbean.RequiredModelMBean"); 
                        
        rtMBean.setModelMBeanInfo(mbi);