首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

WebSphere Integration Developer 七下开发一个Hello World ESB Java Service

2012-06-22 
WebSphere Integration Developer 7下开发一个Hello World ESB Java Service本文总结了在WebSphere Integr

WebSphere Integration Developer 7下开发一个Hello World ESB Java Service

本文总结了在WebSphere Integration Developer 7下开发一个Hello World ESB Java Service的过程。

第1步 - 创建ESB Java service

1.1) 在WebSphere Integration Developer 7.0 workspace中, 切换到Business Integration Perspective.

1.2) 从文件菜单中, 选择File - New - Module, 输入HelloWorldServiceModule为Module名, 然后点击Finish.

1.3) 在HelloWorldServiceModule工程下, 右键点击Interfaces, 然后选择New - Integerface, 使用HelloWorldInterface为interface名称, 然后点击Finish.

1.4) 在interface编辑器中, 右键点击然后选择Add Request Response Operation, 使用hello为operation名称, 使用message为输入名称,response为输出名称, 两种同为string类型. 保存所有文件.

1.5) 切换到Assembly Editor, 从Palette中拖拉一个Java部件到Assembly Editor中, 命名为HelloWorldService.

1.6) 右键点击HelloWorldService, 然后选择Add - Interface, 选择HelloWorldInterface.

1.7) 右键HelloWorldService 然后选择Generate Implementation, 新建一个java packagedemo.

1.8) 切换到HelloWorldServiceImpl Java编辑器, 使用以下代码实现hello方法, 保存文件.

第3步 - 测试运行程序

3.1) 切换到Business Integration Perspective, 右键点击HelloWorldServiceModule, 选择ExportIntegration modules and libraries -Files for server deployment

3.2) 将生成的EAR文件部署到Websphere Process Server上.

3.3) 使用浏览器访问client.jsp以测试该应用.

热点排行