* Initialize this connector (create ServerSocket here!)
*/
public void initialize()
throws LifecycleException {
if (initialized)
throw new LifecycleException("Already initialized");
this.initialized=true;
// Get a hold on a server socket
try {
ServerSocketFactory fact=this.getFactory();
int port=this.getPort();
int accc=this.getAcceptCount();
if (this.getAddress()==null) {
this.server=fact.createSocket(port,accc);
} else {
InetAddress addr=InetAddress.getByName(this.getAddress());
this.server=fact.createSocket(port,accc,addr);
}
} catch (IOException e) {
throw new LifecycleException("Error creating server socket",e);
}
}