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