由于步骤比较简单,这里直接写图文步骤
1.编写AM代码
- public class AppModuleImpl extends ApplicationModuleImpl {
- /**
- * This is the default constructor (do not remove).
- */
- public AppModuleImpl() {
- }
- public String sayHello(String name) {
- return "Hello, " + name;
- }
- }
2.创建webservice
打开AM,在Service Interface面板中,点击右上方的添加按钮,在弹出的对话框中选择
3.创建部署文件
双击Model项目,在Deployment面板,新建部署文件
此步骤的同时,application自动创建可部署的ear文件
4.部署测试
输入URLhttp://shown:7101/AMServcie-Model-context-root/AppModuleService
转自:http://blog.csdn.net/ygj26/article/details/8668832