本文档主要有三个内容。
1)Petals-esb的安装使用。
2)Petals Webconsole的安装使用。
3)Petals各组件的安装。
Petals-esb的安装使用。
需要下载的软件
- Download a JDK 6
- Download Apache TomCat
- Download Petals binaries : Petals ESB, Petals Webconsole, Petals-SE-RMI & Petals-BC-SOAP.
安装前准备
- 安装好JDK, 如果安装好了.请配置JAVA_HOME到环境变量里,这里支持JDK6,其它JDK运行时有问题。
安装Petals ESB
- 安装Petals ESB: 解压就行。.
在WINDOW下, 解压缩到文件夹比如 C:/petals-platform-xxx
安装Petals Web console
- 复制petals-webconsole-ui-xxx.war 到你的中间件服务器,比如apache-tomcat-xxx/webapps
- 启动tomcat,应用自动完成部署.
运行Petals ESB
运行Petals ESB (命令行模式):
- 进行命令行模式,进入刚才安装的文件夹,进入 ./petals-platform-xxx/bin/
- 执行startup.bat -C (Windows) 或者 startup.sh -C (Linux)
- 如果需要更多帮助, 键入: help.
安装各种组件:
- 复制粘贴所有的esb-components/petals-bc-xxx.zip 到 ./petals-platform-xxx/install/
- esb-components/petals-sa-xxx.zip 到 ./petals-platform-xxx/install/
- 返回到Petals ESB命令行,可以检查各组件的安装和部署情况,如果显示有关键字:xxx was successfully started,则表示安装成功。
- 参数"C". 将会显示详细的安装信息。
Webconsole的使用
启动Petals Webconsole:
- 启动Tomcat (如果使用tomcat,同样你也可以安装在webshpere上)
- 在浏览器里键入: http://localhost:8080/petals-webconsole-ui-x.x.x/ ("x" 表示版本号)
你可以看到欢迎的界面! 你可以看到安装,测试和监控的相关信息。 -
通过控制台安装Services-Assemblies:
- 选择左边的 Server: 0
- 选择: Administration > Service-Assemblies.
-
选择文件.zip,完成安装。然后在启动刚才安装的Service-Assemblies.
在控制台里进行测试Service-Units:
- 先在Petals ESB里安装Petals-SE-RMI.
- 点击Manage connections,选择当前的服务器
- 设置petals-se-rmi component enabled,并点击Submit.
- 点击Refresh Domain,并进入Test面板,你将会看到:
-
- Endpoint: Petals ESB的节点.
- Interface:终端的接口
- Service: The service exposed by the endpoint
- Operation: The list of accessible operation for the given service
- Content: Message content. A sample message is generated automatically when a WSDL is provided.
- MEP: Different message exchange patterns. InOnly and InOut are the most common as they are the MEP supported in WSDL 1.1.
- Timeout: Timeout of the invocation, as the Web console use synchronous invocations.
- Send a DONE: Acknowledgment to send back for a potential response, to match according to the MEP in use.
- 你可以根据你的需要,进入到详细的测试面板进行测试。为了方便管理者,同时提供测试历史的快捷菜单。
好了,一切顺利 !
导读: