private ServiceDaemon createServiceDaemon(int poolSize, EjbServer ejbServer, URI uri) throws ServiceException {
ServiceIdentifier serviceIdentifier = new ServiceIdentifier(ejbServer, uri);
KeepAliveServer keepAliveServer = new KeepAliveServer(serviceIdentifier);
ServicePool pool = new ServicePool(keepAliveServer, "ejbd", poolSize);
ServiceDaemon daemon = new ServiceDaemon(pool, 0, "localhost");
daemon.start();
return daemon;
}
public static ThreadLocal<URI> host = new ThreadLocal<URI>();