1
是否可以将自定义线程工厂分配给RMI服务器。我目前使用下面的代码:RMI Threadfactory
try {
String sName = InetAddress.getLocalHost().getHostName();
thisAddress = (InetAddress.getLocalHost().toString());
} catch (UnknownHostException ex) {
shutdown();
}
thisport = 8081;
registry = LocateRegistry.createRegistry(thisport);
registry.rebind("rmiserver", this);
System.out.println("Listening on " + thisAddress + " at port " + thisport);
不过,我想设置创建线程不是标准的主题,但一个子类相同。
问候, KT