完成《Building an Annotation Driven EJB Web Service》。
EJB加上元注释,也可以而创建成一个WebService。
基本步骤与把POJO加上元注释创建成一个WebService的过程类似。
重要步骤说明:
1. 创建一个Stateless Session Bean。

这里我们不选择生成Local或Remote Interface,因为我们只把该EJB作为WebService访问。

添加方法。

添加元注释


2. 测试WebService。

Project 下载:WebServices (4).7z。
没有评论:
发表评论