Package com.sun.messaging.jmq.jmsserver.resources

Examples of com.sun.messaging.jmq.jmsserver.resources.BrokerResources


    }
      }

      connections = cm.getConnectionList(s);
  } catch(Exception e)  {
            BrokerResources  rb = Globals.getBrokerResources();
      Logger logger = Globals.getLogger();

            logger.log(Logger.WARNING,
    rb.getString(rb.W_JMX_FAILED_TO_OBTAIN_CONNECTION_LIST),
    e);
  }

  return (connections);
    }
View Full Code Here


    }
      }

      connections = cm.getConnectionList(s);
  } catch(Exception e)  {
            BrokerResources  rb = Globals.getBrokerResources();
      Logger logger = Globals.getLogger();

            logger.log(Logger.WARNING,
    rb.getString(rb.W_JMX_FAILED_TO_OBTAIN_CONNECTION_LIST),
    e);

      return (connectionInfoList);
  }
View Full Code Here

    public static void compactAllDestinations() throws BrokerException  {
        Iterator itr = Destination.getAllDestinations();
        boolean docompact = true;
  String errMsg = null;
  BrokerResources rb = Globals.getBrokerResources();
  Logger logger = Globals.getLogger();

        while (itr.hasNext()) {
            // make sure all are paused
            Destination d = (Destination)itr.next();

            /*
             * Skip internal, admin, or temp destinations.
             * Skipping temp destinations may need to be
             * revisited.
             */
            if (d.isInternal() || d.isAdmin() || d.isTemporary())  {
                continue;
            }

            if (!d.isPaused()) {
                docompact = false;
                String msg = rb.getString(
                        rb.E_SOME_DESTINATIONS_NOT_PAUSED);
                errMsg = rb.getString(rb.X_COMPACT_DSTS_EXCEPTION, msg);

    throw (new BrokerException(errMsg));
            }
        }

View Full Code Here

    public static CompositeData getProducerInfo(String producerID)
        throws BrokerException, OpenDataException  {
  CompositeData cd = null;
  ProducerUID pid = null;
        BrokerResources  rb = Globals.getBrokerResources();

  if (producerID == null)  {
      throw new
    IllegalArgumentException(rb.getString(rb.X_JMX_NULL_PRODUCER_ID_SPEC));
  }

  long longPid = 0;

  try  {
      longPid = Long.parseLong(producerID);
  } catch (NumberFormatException e)  {
      throw new
    IllegalArgumentException(rb.getString(rb.X_JMX_INVALID_PRODUCER_ID_SPEC, producerID));
  }

  pid = new ProducerUID(longPid);

  if (pid == null)  {
      throw new BrokerException(rb.getString(rb.X_JMX_PRODUCER_NOT_FOUND, producerID));
  }

  cd = getProducerInfo(pid);

  return (cd);
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.resources.BrokerResources

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.