posts - 78,  comments - 48,  trackbacks - 0

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

只有注册用户登录后才能发表评论。


网站导航:
 

<2006年6月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

留言簿(2)

随笔分类(67)

文章分类(43)

Good Article

Good Blogs

Open Source

最新随笔

最新评论

阅读排行榜

评论排行榜