Package javax.management

Examples of javax.management.JMException.initCause()


      jmxc = JMXConnectorFactory.connect(url, env);
  } catch (Exception e)  {
      JMException jme
    = new JMException("Caught exception when creating JMXConnector");
      jme.initCause(e);

      throw (jme);
  }

        return (jmxc);
View Full Code Here


  } catch (Exception e)  {
      JMException jme
    = new JMException("Caught exception when parsing address: "
          + addr);
      jme.initCause(e);

      throw (jme);
  }

  /*
 
View Full Code Here

       */

  } catch (Exception e)  {
      JMException jme
    = new JMException("Caught exception when contacing portmapper.");
      jme.initCause(e);

      throw (jme);
  }

  urlString = pmc.getProperty("url", null, "JMX", connectorName);
View Full Code Here

  try  {
      url = new JMXServiceURL(urlString);
  } catch (MalformedURLException mfe)  {
      JMException jme
    = new JMException("Caught exception when creating JMXServiceURL.");
      jme.initCause(mfe);

      throw (jme);
  }
 
  return (url);
View Full Code Here

        }
        try {
            return new ObjectName("JMImplementation:type=MBeanServerDelegate");
        } catch (MalformedObjectNameException e) {
            JMException jme = new JMException(e.getMessage());
            jme.initCause(e);
            throw jme;
        }
    }

    public void register(Object obj, ObjectName name) throws JMException {
View Full Code Here

        }
        try {
            return new ObjectName("JMImplementation:type=MBeanServerDelegate");
        } catch (MalformedObjectNameException e) {
            JMException jme = new JMException(e.getMessage());
            jme.initCause(e);
            throw jme;
        }
    }

    public void register(Object obj, ObjectName name) throws JMException {
View Full Code Here

            _queueRegistry.registerQueue(queue);
        }
        catch (AMQException ex)
        {
            JMException jme = new JMException(ex.getMessage());
            jme.initCause(ex);
            throw new MBeanException(jme, "Error in creating queue " + queueName);
        }
    }

    private VirtualHost getVirtualHost()
View Full Code Here

        }
        catch (AMQException ex)
        {
            JMException jme = new JMException(ex.getMessage());
            jme.initCause(ex);
            throw new MBeanException(jme, "Error in deleting queue " + queueName);
        }
    }

    public ManagedObject getParentObject()
View Full Code Here

            return new CompositeDataSupport(_msgContentType, _msgContentAttributes, itemValues);
        }
        catch (AMQException e)
        {
            JMException jme = new JMException("Error creating header attributes list: " + e);
            jme.initCause(e);
            throw jme;
        }
    }

    /**
 
View Full Code Here

            }
        }
        catch (AMQException e)
        {
            JMException jme = new JMException("Error creating message contents: " + e);
            jme.initCause(e);
            throw jme;
        }

        return _messageList;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.