예제 #1
0
  public RewardList findRewardList(String fid) {
    RewardList rewardList = new RewardList();
    try {
      Context weblogicContext = ejbproxy.getInitialConnection();
      RewardListService serviceClient =
          (RewardListService) weblogicContext.lookup("RewardListBean/remote");
      rewardList = serviceClient.findRewardList(fid);

    } catch (NamingException ne) {
      // TODO: handle exception
      System.err.println("不能连接NamingException在:" + ne.toString());
      ne.printStackTrace();
    }

    return rewardList;
  }