Package com.sun.messaging.jmq.admin.bkrutil

Examples of com.sun.messaging.jmq.admin.bkrutil.BrokerAdminException


  if (i >= 0) {
            try {
                port = Integer.parseInt(brokerHostPort.substring(i + 1));

            } catch (Exception e) {
    throw new BrokerAdminException(BrokerAdminException.INVALID_PORT_VALUE);
      }
  }
  return port;
    }
View Full Code Here


            checkReplyTypeStatus(mesg, AdminMessageType.Type.HELLO_REPLY, "HELLO_REPLY");
            TemporaryQueue replyTo = (TemporaryQueue)mesg.getJMSReplyTo();
            if (replyTo == null) {
                //no need to I18N - internal programming error
                Globals.stdErrPrintln("HELLO_REPLY protocol error: no JMSReplyTo");
                throw new BrokerAdminException(BrokerAdminException.MSG_REPLY_ERROR);
            }
            if (debug) Globals.stdOutPrintln("*****Got replyQueue from broker: " + replyTo);
            _sender = session.createSender(replyTo);
            _sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
            if (debug) Globals.stdOutPrintln("***** Created a _sender: " + _sender);
View Full Code Here

        if ((svc != null) && (svc.size() == 1)) {
            Enumeration thisEnum = svc.elements();
            ServiceInfo sInfo = (ServiceInfo)thisEnum.nextElement();

            if (sInfo.type == ServiceType.ADMIN)
    throw new BrokerAdminException(BrokerAdminException.INVALID_OPERATION);
        }
    }
View Full Code Here

    found = true;
      i++;
  }

  if (!found) {
      throw new BrokerAdminException(BrokerAdminException.INVALID_OPERATION);
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.admin.bkrutil.BrokerAdminException

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.