* @throws TransactionFailure if port number is not a numeric value.
*/
private void verifyPortBasePortIsValid(String portName, int portNum)
throws TransactionFailure {
if (portNum <= 0 || portNum > PORT_MAX_VAL) {
throw new TransactionFailure(
strings.get("InvalidPortBaseRange", portNum, portName));
}
if (checkPorts && !NetUtils.isPortFree(portNum)) {
throw new TransactionFailure(
strings.get("PortBasePortInUse", portNum, portName));
}
_logger.finer("Port =" + portNum);
}