try {
new Thread(new Runnable() {
public void run() {
TaskService taskService = (TaskService)context.getBean(TaskService.SERVICE_NAME);
List<Task> taskSharedList = taskService.getAllSharedTaskList();
for (Task task : taskSharedList) {
task.setOwner(mainFrame.getUserName());
}
try {
((LoginServiceProxyImpl) context.getBean(LoginServiceProxyImpl.SERVICE_NAME))
.shareTask(taskSharedList);
} catch (RemoteException e) {
e.printStackTrace();
} catch (ServiceException e) {
e.printStackTrace();
}
}
}).run();
} catch (Exception e) {
}
posted on 2006-06-22 16:54
黑咖啡 阅读(176)
评论(0) 编辑 收藏 所属分类:
Tec Article