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();
}
} catch (Exception ex) {
errMsg = getMessageFromException(ex);
status = Status.ERROR;