Package com.sun.messaging.jmq.util.admin

Examples of com.sun.messaging.jmq.util.admin.DestinationInfo


        long mesgSizeLimitValue = -1;
        int  mesgLimitValue = -1;
        long maxSizePerMsgValue = -1;
  boolean useDMQ;
  int limitBehavior;
  DestinationInfo  updateDestInfo = new DestinationInfo();

  /*
   * We check if the value set in the GUI differs from the
   * original value. It is set (and set to the broker) only
   * if it is different. We do this to prevent sending
   * across values for properties that did not change. In some
   * cases, this is harmless. But for some (e.g. for the DMQ),
   * updates to certain properties is not allowed and the old
   * behavior will cause an error.
   */

  if (DestType.isQueue(destInfo.type)) {
      /*
       * Max Active Consumers
       */
      if (activeConsumerSF.isSpecialValueSet())  {
          activeConsumers = UNLIMITED_VALUE_NEG1;
      } else  {
          activeConsumers
      = Integer.parseInt(activeConsumerIF.getText());
      }

      if (activeConsumers != destInfo.maxActiveConsumers)  {
    updateDestInfo.setMaxActiveConsumers(activeConsumers);
      }

      /*
       * Max Backup Consumers
       */
      if (failoverConsumerSF.isSpecialValueSet())  {
          failoverConsumers = UNLIMITED_VALUE_NEG1;
      } else  {
          failoverConsumers
      = Integer.parseInt(failoverConsumerIF.getText());
      }

      if (failoverConsumers != destInfo.maxFailoverConsumers)  {
    updateDestInfo.setMaxFailoverConsumers(failoverConsumers);
      }
  }

  /*
   * Max Producers
   */
  if (maxProducerSF.isSpecialValueSet())  {
      maxProducers = UNLIMITED_VALUE_NEG1;
  } else  {
      maxProducers = Integer.parseInt(maxProducerIF.getText());
  }

  if (maxProducers != destInfo.maxProducers)  {
      updateDestInfo.setMaxProducers(maxProducers);
  }

  /*
   * Max Total Message Bytes
   */
  if (mesgSizeLimitSF.isSpecialValueSet())  {
      mesgSizeLimitValue = UNLIMITED_VALUE_NEG1;
  } else  {
      mesgSizeLimitValue = mesgSizeLimitBF.getValue();
  }

  if (mesgSizeLimitValue != destInfo.maxMessageBytes)  {
      updateDestInfo.setMaxMessageBytes(mesgSizeLimitValue);
  }

  /*
   * Max Number of Messages
   */
  if (mesgLimitSF.isSpecialValueSet())  {
      mesgLimitValue = (int)UNLIMITED_VALUE_NEG1;
  } else  {
      mesgLimitValue = Integer.parseInt(mesgLimitIF.getText());
  }

  if (mesgLimitValue != destInfo.maxMessages)  {
      updateDestInfo.setMaxMessages(mesgLimitValue);
  }

  /*
   * Max Bytes per Messages
   */
  if (maxSizePerMsgSF.isSpecialValueSet())  {
      maxSizePerMsgValue = UNLIMITED_VALUE_NEG1;
  } else  {
            maxSizePerMsgValue = maxSizePerMsgBF.getValue();
  }

  if (maxSizePerMsgValue != destInfo.maxMessageSize)  {
      updateDestInfo.setMaxMessageSize(maxSizePerMsgValue);
  }

  /*
   * Limit behavior
   */
  limitBehavior = getLimitBehavValue(
      (String)limitBehaviorCb.getSelectedItem());
  if (limitBehavior != destInfo.destLimitBehavior)  {
      updateDestInfo.setLimitBehavior(limitBehavior);
  }

  /*
   * Use DMQ
   */
  useDMQ = useDMQCkb.isSelected();
  if (useDMQ != destInfo.useDMQ())  {
      updateDestInfo.setUseDMQ(useDMQ);
  }

  return (updateDestInfo);
    }
View Full Code Here


                cmd_props);
        }

  String destination = (String)cmd_props.get(MessageType.JMQ_DESTINATION);

  DestinationInfo info = (DestinationInfo)getBodyObject(cmd_msg);

    int status = Status.OK;
    String errMsg = null;

        HAMonitorService hamonitor = Globals.getHAMonitorService();
        if (hamonitor != null && hamonitor.inTakeover()) {
            status = Status.ERROR;
            errMsg =  rb.getString(rb.E_CANNOT_PROCEED_TAKEOVER_IN_PROCESS);

            logger.log(Logger.ERROR, this.getClass().getName() + ": " + errMsg);
  } else  {

    try {
        Destination d= Destination.getDestination(info.name,
            DestType.isQueue(info.type));
  if (d == null)  {
     errMsg= rb.getString( rb.X_DESTINATION_NOT_FOUND,
            info.name);
     status = Status.NOT_FOUND;
  } else  {
            if (info.isModified(info.MAX_MESSAGES)) {
                int maxMessages = info.maxMessages;
                d.setCapacity(maxMessages);
            }
            if (info.isModified(info.MAX_MESSAGE_SIZE)) {
                SizeString maxSize = new SizeString();
                maxSize.setBytes(info.maxMessageSize);
                d.setMaxByteSize(maxSize);
            }
            if (info.isModified(info.MAX_MESSAGE_BYTES)) {
                SizeString maxBytes = new SizeString();
                maxBytes.setBytes(info.maxMessageBytes);
                d.setByteCapacity(maxBytes);
            }
            if (info.isModified(info.DEST_SCOPE)) {
                int scope = info.destScope;
                d.setScope(scope);
           
            }
            if (info.isModified(info.DEST_LIMIT)) {
                int destlimit = info.destLimitBehavior;
                d.setLimitBehavior(destlimit);
            }
            if (info.isModified(info.DEST_PREFETCH)) {
                int prefetch = info.maxPrefetch;
                d.setMaxPrefetch(prefetch);
            }
            if (info.isModified(info.DEST_CDP)) {
                int clusterdeliverypolicy = info.destCDP;
                d.setClusterDeliveryPolicy(clusterdeliverypolicy);
            }
            if (info.isModified(info.MAX_ACTIVE_CONSUMERS)) {
                int maxcons = info.maxActiveConsumers;
                d.setMaxActiveConsumers(maxcons);
            }
            if (info.isModified(info.MAX_FAILOVER_CONSUMERS)) {
                int maxcons = info.maxFailoverConsumers;
                d.setMaxFailoverConsumers(maxcons);
            }
            if (info.isModified(info.MAX_PRODUCERS)) {
                int maxproducers = info.maxProducers;
                d.setMaxProducers(maxproducers);
            }
            if (info.isModified(info.MAX_SHARED_CONSUMERS)) {
                int maxsharedcons = info.maxNumSharedConsumers;
                d.setMaxSharedConsumers(maxsharedcons);
            }
            if (info.isModified(info.SHARE_FLOW_LIMIT)) {
                int sflowlimit = info.sharedConsumerFlowLimit;
                d.setSharedFlowLimit(sflowlimit);
            }
            if (info.isModified(info.USE_DMQ)) {
                boolean dmq = info.useDMQ;
                d.setUseDMQ(dmq);
            }
            if (info.isModified(info.VALIDATE_XML_SCHEMA_ENABLED)) {
                d.setValidateXMLSchemaEnabled(info.validateXMLSchemaEnabled);
            }
            if (info.isModified(info.XML_SCHEMA_URI_LIST)) {
                d.setXMLSchemaUriList(info.XMLSchemaUriList);
            }
            if (info.isModified(info.RELOAD_XML_SCHEMA_ON_FAILURE)) {
                d.setReloadXMLSchemaOnFailure(info.reloadXMLSchemaOnFailure);
            }
            d.update();
  }
       
View Full Code Here

  int i = 0;

        Enumeration thisEnum = dests.elements();

        while (thisEnum.hasMoreElements()) {
            DestinationInfo dInfo = (DestinationInfo)thisEnum.nextElement();
      int j = 0, numMsgs;
      long totalMsgSize;
      float avgMsgSize = 0;
      String destType;
View Full Code Here

  return (0);
    }

    private int runCreate(BrokerCmdProperties brokerCmdProps) {
  BrokerAdmin  broker;
  DestinationInfo  destInfo;
  String    destName;
  int    destTypeMask;
  Properties  destAttrs;

  broker = init();

  if (broker == null)  {
            Globals.stdErrPrintln(ar.getString(ar.I_JMQCMD_CREATE_DST_FAIL));
      return (1);
  }

        boolean force = brokerCmdProps.forceModeSet();
        if (!force)
            broker = promptForAuthentication(broker);

  destName = brokerCmdProps.getTargetName();
  destTypeMask = getDestTypeMask(brokerCmdProps);
  destAttrs = brokerCmdProps.getTargetAttrs();

        Globals.stdOutPrintln(ar.getString(ar.I_JMQCMD_CREATE_DST));

  BrokerCmdPrinter bcp = new BrokerCmdPrinter(2,4);
  String[] row = new String[2];

  bcp.setSortNeeded(false);

  row[0] = ar.getString(ar.I_JMQCMD_DST_NAME);
  row[1] = destName;
  bcp.add(row);

  row[0] = ar.getString(ar.I_JMQCMD_DST_TYPE);
        row[1] = BrokerAdminUtil.getDestinationType(destTypeMask);
  bcp.add(row);

  /*
  // Only print out the flavor type if the destination is a queue.
  if (DestType.isQueue(destTypeMask)) {
      row[0] = ar.getString(ar.I_JMQCMD_DST_FLAVOR);
            row[1] = BrokerAdminUtil.getDestinationFlavor(destTypeMask);
      bcp.add(row);
  }
  */

    // Check for optional destination attributes.
  // Note that the same checking is done twice; once for printing
  // and once for creating the DestinationInfo object.  It can
  // be combined, but this is cleaner.
  String prop = null;
  if ((prop = destAttrs.getProperty
             (PROP_NAME_OPTION_MAX_MESG)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_MSG_ALLOW);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_OPTION_MAX_MESG_BYTE)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_MSG_BYTES_ALLOW);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_OPTION_MAX_PER_MESG_SIZE)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_BYTES_PER_MSG_ALLOW);
             row[1] = prop;
             bcp.add(row);
  }

  if ((prop = destAttrs.getProperty
             (PROP_NAME_MAX_PRODUCERS)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_PRODUCERS);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_MAX_ACTIVE_CONSUMER_COUNT)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_ACTIVE_CONSUMER_COUNT);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_MAX_FAILOVER_CONSUMER_COUNT)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_MAX_FAILOVER_CONSUMER_COUNT);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_LIMIT_BEHAVIOUR)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_LIMIT_BEHAVIOUR);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_CONSUMER_FLOW_LIMIT)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_CONS_FLOW_LIMIT);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_IS_LOCAL_DEST)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_IS_LOCAL_DEST);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_LOCAL_DELIVERY_PREF)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_LOCAL_DELIVERY_PREF);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_USE_DMQ)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_USE_DMQ);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_VALIDATE_XML_SCHEMA_ENABLED)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_VALIDATE_XML_SCHEMA_ENABLED);
             row[1] = prop;
             bcp.add(row);
  }
  if ((prop = destAttrs.getProperty
             (PROP_NAME_XML_SCHEMA_URI_LIST)) != null) {
       row[0] = ar.getString(ar.I_JMQCMD_DST_XML_SCHEMA_URI_LIST);
             row[1] = prop;
             bcp.add(row);
  }
  bcp.println();

  Globals.stdOutPrintln(ar.getString(ar.I_JMQCMD_SPECIFY_BKR));
  printBrokerInfo(broker);

  try {
      SizeString  ss;
      long  byteValue;

      destInfo = new DestinationInfo();

      destInfo.setType(destTypeMask);
      destInfo.setName(destName);

        // Check for optional destination attributes
      if ((prop = destAttrs.getProperty
    (PROP_NAME_OPTION_MAX_MESG_BYTE)) != null) {
    try  {
        ss = new SizeString(prop);
        byteValue = ss.getBytes();
              destInfo.setMaxMessageBytes(byteValue);
    } catch (NumberFormatException nfe)  {
        /*
         * Do nothing. We shouldn't ever get here since
         * we do input validation prior to all this.
         */
    }

      }
      if ((prop = destAttrs.getProperty
    (PROP_NAME_OPTION_MAX_MESG)) != null) {
          destInfo.setMaxMessages(Integer.parseInt(prop));
      }
      if ((prop = destAttrs.getProperty
    (PROP_NAME_OPTION_MAX_PER_MESG_SIZE)) != null) {
    try  {
        ss = new SizeString(prop);
        byteValue = ss.getBytes();
              destInfo.setMaxMessageSize(byteValue);
    } catch (NumberFormatException nfe)  {
        /*
         * Do nothing. We shouldn't ever get here since
         * we do input validation prior to all this.
         */
    }
      }

      if ((prop = destAttrs.getProperty
                 (PROP_NAME_MAX_FAILOVER_CONSUMER_COUNT)) != null) {
          destInfo.setMaxFailoverConsumers(Integer.parseInt(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_MAX_ACTIVE_CONSUMER_COUNT)) != null) {
          destInfo.setMaxActiveConsumers(Integer.parseInt(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_IS_LOCAL_DEST)) != null) {
          destInfo.setScope(Boolean.valueOf(prop).booleanValue());
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_LIMIT_BEHAVIOUR)) != null) {
          destInfo.setLimitBehavior(getLimitBehavValue(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_LOCAL_DELIVERY_PREF)) != null) {
          destInfo.setClusterDeliveryPolicy(getClusterDeliveryPolicy(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_CONSUMER_FLOW_LIMIT)) != null) {
          destInfo.setPrefetch(Integer.parseInt(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_MAX_PRODUCERS)) != null) {
          destInfo.setMaxProducers(Integer.parseInt(prop));
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_USE_DMQ)) != null) {
          destInfo.setUseDMQ(Boolean.valueOf(prop).booleanValue());
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_VALIDATE_XML_SCHEMA_ENABLED)) != null) {
          destInfo.setValidateXMLSchemaEnabled(Boolean.valueOf(prop).booleanValue());
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_XML_SCHEMA_URI_LIST)) != null) {
          destInfo.setXMLSchemaUriList(prop);
      }
      if ((prop = destAttrs.getProperty
                 (PROP_NAME_RELOAD_XML_SCHEMA_ON_FAILURE)) != null) {
          destInfo.setReloadXMLSchemaOnFailure(Boolean.valueOf(prop).booleanValue());
      }

      connectToBroker(broker);

      broker.sendCreateDestinationMessage(destInfo);
View Full Code Here

    if (dests != null) {
                    Enumeration thisEnum = dests.elements();

                    while (thisEnum.hasMoreElements()) {
                        DestinationInfo dInfo = (DestinationInfo)thisEnum.nextElement();
                        String          destName;
                        int             destTypeMask;

      destName = dInfo.name;
      destTypeMask = dInfo.type;
View Full Code Here

    if (dests != null) {
                    Enumeration thisEnum = dests.elements();

                    while (thisEnum.hasMoreElements()) {
                        DestinationInfo dInfo = (DestinationInfo)thisEnum.nextElement();
                        String          destName;
                        int             destTypeMask;

      destName = dInfo.name;
      destTypeMask = dInfo.type;
View Full Code Here

                Globals.stdErrPrintln(ar.getString(ar.I_JMQCMD_UPDATE_SVC_FAIL));
          return (1);
      }

        } else if (CMDARG_DESTINATION.equals(commandArg)) {
      DestinationInfo  di;
      String destName;
      int destTypeMask;

      if (broker == null)  {
                Globals.stdErrPrintln(ar.getString(ar.I_JMQCMD_UPDATE_DEST_FAIL));
          return (1);
      }

            if (!force)
                broker = promptForAuthentication(broker);

      targetAttrs = brokerCmdProps.getTargetAttrs();
      destTypeMask = getDestTypeMask(brokerCmdProps);
      destName = brokerCmdProps.getTargetName();
      if (DestType.isQueue(destTypeMask)) {
                Globals.stdOutPrintln(ar.getString(
        ar.I_JMQCMD_UPDATE_DEST_Q, destName));
      } else  {
                Globals.stdOutPrintln(ar.getString(
        ar.I_JMQCMD_UPDATE_DEST_T, destName));
      }
      Globals.stdOutPrintln("");
      printAttrs(targetAttrs);

      Globals.stdOutPrintln(ar.getString(ar.I_JMQCMD_SPECIFY_BKR));
      printBrokerInfo(broker);

            if (!force) {
    if (updatingDestXMLSchema(targetAttrs))  {
        Object args[] = new Object [ 3 ];
   
        args[0] = PROP_NAME_VALIDATE_XML_SCHEMA_ENABLED;
        args[1] = PROP_NAME_XML_SCHEMA_URI_LIST;
        args[2] = PROP_NAME_RELOAD_XML_SCHEMA_ON_FAILURE;
                    input = CommonCmdRunnerUtil.getUserInput(ar.getString(ar.Q_UPDATE_DEST_XML_SCHEMA_OK,
          args), noShort);
    } else  {
                    input = CommonCmdRunnerUtil.getUserInput(ar.getString(ar.Q_UPDATE_DEST_OK), noShort);
    }
                Globals.stdOutPrintln("");

                if (noShort.equalsIgnoreCase(input) || no.equalsIgnoreCase(input)) {
                    Globals.stdOutPrintln(ar.getString(ar.I_JMQCMD_UPDATE_DEST_NOOP));
                    return (0);

                } else if (!(yesShort.equalsIgnoreCase(input) || yes.equalsIgnoreCase(input))) {
                    Globals.stdOutPrintln(ar.getString(ar.I_UNRECOGNIZED_RES, input));
                    Globals.stdOutPrintln("");
                    Globals.stdOutPrintln(ar.getString(ar.I_JMQCMD_UPDATE_DEST_NOOP));
                    return (1);
                }
            }

      try {
          di = getDestinationInfoFromAttrs(targetAttrs);
          di.setType(destTypeMask);
          di.setName(destName);

          connectToBroker(broker);

          broker.sendUpdateDestinationMessage(di);
          broker.receiveUpdateDestinationReplyMessage();
View Full Code Here

  return (false);
    }

    private DestinationInfo getDestinationInfoFromAttrs(Properties destAttrs) {
  DestinationInfo di = new DestinationInfo();

  for (Enumeration e = destAttrs.propertyNames();  e.hasMoreElements() ;) {
      String propName = (String)e.nextElement(),
       value = destAttrs.getProperty(propName);
      SizeString  ss;
      int    intValue = 0;
      long  longValue = 0;
      boolean  valueOK = true;
     
      /*
       * maxTotalMsgBytes
       */
      if (propName.equals(PROP_NAME_OPTION_MAX_MESG_BYTE))  {
    try  {
        ss = new SizeString(value);
        longValue = ss.getBytes();
    } catch (NumberFormatException nfe)  {
        valueOK = false;
    }

    if (valueOK)  {
        di.setMaxMessageBytes(longValue);
    }
    continue;
      }

      /*
       * maxNumMsgs
       */
      if (propName.equals(PROP_NAME_OPTION_MAX_MESG))  {
    try  {
        intValue = Integer.parseInt(value);
    } catch (NumberFormatException nfe)  {
        valueOK = false;
    }

    if (valueOK)  {
        di.setMaxMessages(intValue);
    }
    continue;
      }

      /*
       * maxBytesPerMsg
       */
      if (propName.equals(PROP_NAME_OPTION_MAX_PER_MESG_SIZE))  {
    try  {
        ss = new SizeString(value);
        longValue = ss.getBytes();
    } catch (NumberFormatException nfe)  {
        valueOK = false;
    }

    if (valueOK)  {
        di.setMaxMessageSize(longValue);
    }
    continue;
      }


      /*
       * maxFailoverConsumerCount
       */
      if (propName.equals(PROP_NAME_MAX_FAILOVER_CONSUMER_COUNT))  {
    try  {
              di.setMaxFailoverConsumers(Integer.parseInt(value));
    } catch (NumberFormatException nfe)  {
    }
      }

      /*
       * maxNumBackupConsumers
       */
      if (propName.equals(PROP_NAME_MAX_ACTIVE_CONSUMER_COUNT))  {
    try  {
              di.setMaxActiveConsumers(Integer.parseInt(value));
    } catch (NumberFormatException nfe)  {
    }
      }

      /*
       * isLocalDestination
       */
      if (propName.equals(PROP_NAME_IS_LOCAL_DEST))  {
          di.setScope(Boolean.valueOf(value).booleanValue());
      }

      /*
       * limitBehaviour
       */
      if (propName.equals(PROP_NAME_LIMIT_BEHAVIOUR))  {
          di.setLimitBehavior(getLimitBehavValue(value));
      }

      /*
       * localDeliveryPreferred
       */
      if (propName.equals(PROP_NAME_LOCAL_DELIVERY_PREF))  {
          di.setClusterDeliveryPolicy(getClusterDeliveryPolicy(value));
      }

      /*
       * maxPrefetchCount
       */
      if (propName.equals(PROP_NAME_CONSUMER_FLOW_LIMIT))  {
    try  {
              di.setPrefetch(Integer.parseInt(value));
    } catch (NumberFormatException nfe)  {
    }
      }

      /*
       * maxProducerCount
       */
      if (propName.equals(PROP_NAME_MAX_PRODUCERS))  {
    try  {
              di.setMaxProducers(Integer.parseInt(value));
    } catch (NumberFormatException nfe)  {
    }
      }

      /*
       * useDMQ
       */
      if (propName.equals(PROP_NAME_USE_DMQ))  {
          di.setUseDMQ(Boolean.valueOf(value).booleanValue());
      }

      if (propName.equals(PROP_NAME_VALIDATE_XML_SCHEMA_ENABLED))  {
          di.setValidateXMLSchemaEnabled(Boolean.valueOf(value).booleanValue());
      }

      if (propName.equals(PROP_NAME_XML_SCHEMA_URI_LIST))  {
          di.setXMLSchemaUriList(value);
      }

      if (propName.equals(PROP_NAME_RELOAD_XML_SCHEMA_ON_FAILURE))  {
          di.setReloadXMLSchemaOnFailure(Boolean.valueOf(value).booleanValue());
      }
  }
 
  return (di);
    }
View Full Code Here

        if (!(conObj instanceof BrokerDestCObj))  {
            return null;
        }

        bDestCObj = (BrokerDestCObj)conObj;
        DestinationInfo destInfo = bDestCObj.getDestinationInfo();

  /*
       * Do not list internal destinations.
   */
  if (DestType.isInternal(destInfo.fulltype)) {
View Full Code Here

        create(type, name, null);
    }

    public void create(String type, String name, AttributeList attrs)
            throws MBeanException  {
  DestinationInfo info =
    DestinationUtil.getDestinationInfoFromAttrs(type,
        name, attrs);

  try  {
      DestinationUtil.checkCreateDestinationAttrs(type, attrs);
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.util.admin.DestinationInfo

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.