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.