Petals ESB 安装部署

      本文档主要有三个内容。

       1)Petals-esb的安装使用。

       2)Petals Webconsole的安装使用。

       3)Petals各组件的安装。

 

Petals-esb的安装使用。

     需要下载的软件

  1. Download a JDK 6
  2. Download Apache TomCat
  3. Download Petals binaries : Petals ESB, Petals Webconsole, Petals-SE-RMI  & Petals-BC-SOAP.

安装前准备

  1. 安装好JDK, 如果安装好了.请配置JAVA_HOME到环境变量里,这里支持JDK6,其它JDK运行时有问题。

安装Petals ESB

  1. 安装Petals ESB: 解压就行。.
    在WINDOW下, 解压缩到文件夹比如 C:/petals-platform-xxx 

安装Petals Web console

  1. 复制petals-webconsole-ui-xxx.war 到你的中间件服务器,比如apache-tomcat-xxx/webapps
  2. 启动tomcat,应用自动完成部署.

运行Petals ESB

运行Petals ESB (命令行模式):

  1. 进行命令行模式,进入刚才安装的文件夹,进入 ./petals-platform-xxx/bin/
  2. 执行startup.bat -C (Windows) 或者 startup.sh -C (Linux)
    "-C" 参考是一个调试模式,你可以在正式部署时,不使用这个参数。
  3. 如果需要更多帮助, 键入: help.

安装各种组件:

  1. 复制粘贴所有的esb-components/petals-bc-xxx.zip 到 ./petals-platform-xxx/install/
  2.                   esb-components/petals-sa-xxx.zip 到 ./petals-platform-xxx/install/
  3. 返回到Petals ESB命令行,可以检查各组件的安装和部署情况,如果显示有关键字:xxx was successfully started,则表示安装成功。
  4. 参数"C". 将会显示详细的安装信息。
    有几种方式来安装组件和服务组件:
    • 目录./petals-platform-xxx/install/是要准备安装的组件列表; 如果已经安装成功,则在 ./petals-platform-xxx/installed/目录下. (同样想卸载组件, 删除对应的 .zip文件在 ./petals-platform-xxx/installed/ )
    • 通过控制台Administrator/Service Assemblies,一步一步操作,经过笔者测试,上传ZIP时,2.0.2版本经常报错.
    • 通过命令行安装,有现成的安装部署脚本,以便于安装。
    • 通过带有JConsole的JMX,并通过ANT任务完成安装部署。

Webconsole的使用

启动Petals Webconsole:

  1. 启动Tomcat (如果使用tomcat,同样你也可以安装在webshpere上)
  2. 在浏览器里键入: http://localhost:8080/petals-webconsole-ui-x.x.x/ ("x" 表示版本号)
    你可以看到欢迎的界面! 你可以看到安装,测试和监控的相关信息。


  3.  

通过控制台安装Services-Assemblies:

  1. 选择左边的 Server: 0 
    目前只有一个Petals ESB服务器,这个控制台可以管理多个Petals ESBs.
  2. 选择: Administration > Service-Assemblies.


  3.  选择文件.zip,完成安装。然后在启动刚才安装的Service-Assemblies.
  4. 有几种组件的状态可以管理 :
    • Start: Component is running.
    • Stop: Component stops receiving messages.
    • Shutdown: Clean-up and release all ressources used by components.
    • Uninstall: Removes the component.
    • Force undeploy: Stop, Shutdown and Undeploy. If one operation has an error, it is ignored and go to next step. This should be used only in case of service crash, or if you really need to fast undeploy.

在控制台里进行测试Service-Units:

  1. 先在Petals ESB里安装Petals-SE-RMI.
  2. 点击Manage connections,选择当前的服务器
  3. 设置petals-se-rmi component enabled,并点击Submit.
  4. 点击Refresh Domain,并进入Test面板,你将会看到:


  5.  
    • 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.
  6. 你可以根据你的需要,进入到详细的测试面板进行测试。为了方便管理者,同时提供测试历史的快捷菜单。


好了,一切顺利 !

 

 导读:

  1.  Petals ESB 简介 
  2. Petals ESB 安装部署

  3. Petals ESB 开发之一 代理Web Service 

  4. Petals ESB 开发之二    协议转换
  5. Petals ESB 开发之三    服务消息转换
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值