Second, a reference to a PortletService is obtained (in particular, this example references a WeatherService object).
第二件事是获取对PortletService的引用(具体到这个示例就是引用WeatherService对象)。
With the WeatherService and its asynchronous interface in place, I can now modify the Weather Reporter client to invoke the service and handle its response.
有了WeatherService和它的异步接口之后,现在就可以修改Weather Reporter客户机,从而调用服务并处理服务器响应。
The application also provides simple APIs into Yahoo!'s map and weather Web services with the application-scoped mapService and weatherService managed beans, respectively.
应用程序还分别使用应用程序范围内的 mapService 和 weatherService 托管 beans 为 Yahoo! 的 map 和 weather Web 服务提供了简单的 API。
应用推荐