Package example.contract

Examples of example.contract.INewsService


     * 备注:
     * 服务名:需要与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());
    }
  }
View Full Code Here

TOP

Related Classes of example.contract.INewsService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.