RMI Threadfactory
|
是否可以将自定义线程工厂分配给RMI服务器。我目前使用以下代码:
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);
但是,我想设置为创建的线程不是标准线程,而是相同的子类。
问候,
韩国电信
没有找到相关结果
已邀请:
1 个回复
担每棱绰