轉自:http://blog.csdn.net/ygj26/article/details/8668832
由於步驟比較簡單,這裏直接寫圖文步驟
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