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

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


    }


    private String getBrokerAdminExceptionBasicMsg(BrokerAdminException bae)  {
  int    type = bae.getType();
  BrokerAdminConn ba = bae.getBrokerAdminConn();
  String    ret, brokerName, host, port;

  switch (type)  {
  case BrokerAdminException.MSG_SEND_ERROR:
      ret = ar.getString(ar.E_JMQCMD_MSG_SEND_ERROR);
  break;

  case BrokerAdminException.MSG_REPLY_ERROR:
      ret = ar.getString(ar.E_JMQCMD_MSG_REPLY_ERROR);
  break;

  case BrokerAdminException.CLOSE_ERROR:
      ret = ar.getString(ar.E_JMQCMD_CLOSE_ERROR);
  break;

  case BrokerAdminException.PROB_GETTING_MSG_TYPE:
      ret = ar.getString(ar.E_JMQCMD_PROB_GETTING_MSG_TYPE);
  break;

  case BrokerAdminException.PROB_GETTING_STATUS:
      ret = ar.getString(ar.E_JMQCMD_PROB_GETTING_STATUS);
  break;

  case BrokerAdminException.REPLY_NOT_RECEIVED:
      ret = acr.getString(acr.E_REPLY_NOT_RECEIVED);
  break;

  case BrokerAdminException.INVALID_OPERATION:
      ret = ar.getString(ar.E_JMQCMD_INVALID_OPERATION);
  break;

  case BrokerAdminException.IGNORE_REPLY_IF_RCVD:
      ret = acr.getString(acr.E_NO_REPLY_GIVEUP);
  break;

  case BrokerAdminException.BUSY_WAIT_FOR_REPLY:
      Object  args[] = new Object [ 3 ];

      brokerName = ba.getKey();
      host = ba.getBrokerHost();
      port = ba.getBrokerPort();

      args[0] = brokerName;
      args[1] = host;
      args[2] = port;
      ret = acr.getString(acr.I_BUSY_WAIT_FOR_REPLY, args);
View Full Code Here

TOP

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

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.