DestState.PAUSED : pauseType.intValue());
if (destination == null) {
Iterator itr = Destination.getAllDestinations();
while (itr.hasNext()) {
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;
}
d.pauseDestination(pauseval);
}
} else {
Destination d = Destination.getDestination(destination,
DestType.isQueue(type.intValue()));
if (d == null) {
String msg = Globals.getBrokerResources().getString(
BrokerResources.I_PAUSED_DST_NOT_EXIST,
(DestType.isQueue(type.intValue()) ? " queue:" :
" topic:") +destination );
errMsg = msg;
status = Status.NOT_FOUND;
logger.log(Logger.ERROR,msg);
} else {
if (d.isInternal() || d.isAdmin()) {
errMsg = Globals.getBrokerResources().getString(
BrokerResources.I_PAUSED_ADMIN,
(DestType.isQueue(type.intValue()) ? " queue:" :
" topic:") +destination );
logger.log(Logger.INFO, errMsg);
status = Status.ERROR;
} else {
d.pauseDestination(pauseval);
}
}
}
}
} catch (IOException e) {