if (lip != null) {
return lip;
} else {
try {
InetAddress inetAddr = InetAddress.getByName(address);
MessageProcessor messageProcessor = this.createMessageProcessor(inetAddr, port,
transport);
if (this.isLoggingEnabled()) {
this.getStackLogger().logDebug(
"Created Message Processor: " + address + " port = " + port
+ " transport = " + transport);
}
lip = new ListeningPointImpl(this, port, transport);
lip.messageProcessor = messageProcessor;
messageProcessor.setListeningPoint(lip);
this.listeningPoints.put(key, lip);
// start processing messages.
messageProcessor.start();
return (ListeningPoint) lip;
} catch (java.io.IOException ex) {
getStackLogger().logError(
"Invalid argument address = " + address + " port = " + port
+ " transport = " + transport);