* 备注:
* 服务名:需要与gaea.config中的服务名一一对应,
* 接口实现类:具体调用接口的接口实现类
*/
final String url = "tcp://demo/NewsService";
INewsService newsService = ProxyFactory.create(INewsService.class, url);
List<News> list = newsService.getNewsByCateID();
for(News news : list){
System.out.println("ID is "+news.getNewsID()+" title is "+news.getTitle());
}
}