Package com.sun.enterprise.admin.common.exception

Examples of com.sun.enterprise.admin.common.exception.JMSAdminException


            throw ((JMSAdminException)e);
        }

        String msg = e.getMessage();

        JMSAdminException jae;

        if (msg == null)  {
            jae = new JMSAdminException();
        } else  {
            jae = new JMSAdminException(msg);
        }

        /*
         * Don't do this for now because the CLI does not include jms.jar
         * (at least not yet) in the classpath. Sending over a JMSException
View Full Code Here


                MQJMXConnectorInfo mqInfo = null;
    try {
      MQJMXConnectorInfo [] cInfo =
        ConnectorRuntime.getRuntime().getMQJMXConnectorInfo(tgtName);
      if ((cInfo == null) || (cInfo.length < 1)) {
        throw new JMSAdminException(
                        localStrings.getString("admin.mbeans.rmb.error_obtaining_jms"));
      }
      int k = -1;
      for (int i=0; i<cInfo.length; i++) {
        if (tgtName.equals(cInfo[i].getASInstanceName())) {
          k = i;
          break;
        }
      }
      if (k == -1) {
        throw new JMSAdminException(
        localStrings.getString("admin.mbeans.rmb.invalid_server_instance", tgtName));
      }
                        mqInfo = cInfo[k];

      MBeanServerConnection mbsc = cInfo[k].getMQMBeanServerConnection();
View Full Code Here

                                                                                                                                             
                try {
                        MQJMXConnectorInfo [] cInfo =
                                ConnectorRuntime.getRuntime().getMQJMXConnectorInfo(tgtName);
                        if ((cInfo == null) || (cInfo.length < 1)) {
                                throw new JMSAdminException(
                        localStrings.getString("admin.mbeans.rmb.error_obtaining_jms"));
                        }
                        mcInfo = cInfo[0];
                                                                                                                                             
                } catch (Exception e) {
View Full Code Here

                                        throws JMSAdminException {
        //log JMX Exception trace as WARNING
        StringWriter s = new StringWriter();
        e.getCause().printStackTrace(new PrintWriter(s));
        sLogger.log(Level.WARNING, s.toString());
        JMSAdminException je = new JMSAdminException(localStrings.getString(errorMsg));
  /* Cause will be InvocationTargetException, cause of that
    * wil be  MBeanException and cause of that will be the
   * real exception we need
   */
  if ((e.getCause() != null) &&
      (e.getCause().getCause() != null)) {
      je.initCause(e.getCause().getCause().getCause());
  }
        handleException(je);
    }
View Full Code Here

            throw ((JMSAdminException)e);
        }

        String msg = e.getMessage();

        JMSAdminException jae;
        if (msg == null)  {
            jae = new JMSAdminException();
        } else  {
            jae = new JMSAdminException(msg);
        }

        /*
         * Don't do this for now because the CLI does not include jms.jar
         * (at least not yet) in the classpath. Sending over a JMSException
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.common.exception.JMSAdminException

Copyright © 2018 www.massapicom. 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.