Open ESB

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(安装指南)
第47行: 第47行:
 
JMX管理,可使用[[JConsole]]和[[MX4J]]等工具
 
JMX管理,可使用[[JConsole]]和[[MX4J]]等工具
 
  JMXServiceURL:[service:jmx:rmi:///jndi/rmi://debian:8686/jmxrmi
 
  JMXServiceURL:[service:jmx:rmi:///jndi/rmi://debian:8686/jmxrmi
+
from:www.xa-seo.cn
 +
 
 
==测试用例==
 
==测试用例==
 
===BPEL Sample===
 
===BPEL Sample===

2007年9月11日 (二) 12:24的版本

Java EE 5 SDK includes Project Open ESB Starter Kit, a subset of what is available from Project Open ESB. Open ESB Starter Kit provides Java EE developers an introduction to composite application development that uses SOA technology.

Project Open ESB Starter Kit includes the JBI runtime, a BPEL 2.0 Service Engine, and a SOAP binding component.

In addition to Open ESB Starter Kit, Java EE 5 SDK also provides NetBeans-based tools for creating JBI service assemblies, designing BPEL orchestration, and debugging composite applications.

Open ESB Starter Kit 包含:

  • JBI Framework: Runtime that implements a JBI instance.
  • BPEL Service Engine: Uses Business Process Execution Language (BPEL) to choreograph processes within a composite application.
  • HTTP SOAP Binding Component: Connects a JBI instance to external web services and also allows external clients to connect to the JBI instance.
  • Java EE Service Engine: Allows direct connection to EJB services within the hosting application server.
  • Ant Administration Interface: Manages a JBI instance.
  • BPEL Service Engine Examples: Provides an introduction to Open ESB Starter Kit. Accompanying documentation describes the examples and how to run them.

目录

安装指南

获得安装包, 
chmod a+x java_ee_sdk-5-soa_kit-preview-linux.bin
./java_ee_sdk-5-soa_kit-preview-linux.bin 进行图形化安装
选择安装目录 /home/huihoo/JavaEE5 ,事先创建这个目录

设置Admin属性

admin/adminadmin
Admin Port: 4848
HTTP Port: 8080
HTTPS Port: 8181

选择 Project Open ESB Starter Kit Add-on

以下产品将被安装

Java 2 SDK Standard Editor 5.0 
SUN Java System Message Queue 4.0 
Application Server
Add-ons // 这里指Open ESB Starter Kit

然后开始安装, 系统能很顺利的安装完成

2006-8-29 2:26:03 com.sun.jbi.installer.OpenEsbInstaller install
信息: "OpenESBDevPack successfully installed in <AppserverInstallDir>/addons/OpenESB"

启动服务器

bin/adadmin start-domain domain1 
http://localhost:4848 
admin/adminadmin

Domain listens on at least following ports for connections:[8080 8181 4848 3700 3820 3920 8686 ]

HTTP Port(s): 8080, 8181, 4848
IIOP Port(s):3700, 3820, 3920
JMX Port: 8686

JMX管理,可使用JConsoleMX4J等工具

JMXServiceURL:[service:jmx:rmi:///jndi/rmi://debian:8686/jmxrmi

from:www.xa-seo.cn

测试用例

BPEL Sample

设置环境: /home/huihoo/JavaEE5/addons/OpenESB/samples/build.properties

appserver.home=/home/huihoo/JavaEE5
jdk.home=/home/huihoo/JavaEE5/jdk
jbi.port=8686
jbi.home=${appserver.home}/addons/OpenESB
jbi.username=admin
jbi.password=adminadmin 

编译sample

/home/huihoo/JavaEE5/bin/asant clean
/home/huihoo/JavaEE5/bin/asant build-sa 
//Builds the service assembly that contains the HTTP SOAP binding component and the BPEL service engine.
/home/huihoo/JavaEE5/bin/asant deploy-sa //Deploys the service assembly.
/home/huihoo/JavaEE5/bin/asant start-sa //Starts the service assembly, making it ready to do work.

初试环境

/JavaEE5/config$ sh ./asenv.conf

运行build-test脚本

/JavaEE5/addons/OpenESB/samples/tester$ sh ./build-test 

运行run-test脚本

/JavaEE5/addons/OpenESB/samples/tester$ sh ./run-test

输出文件 echo.out

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><item xmlns="urn:Test6">
   <value>Hello World</value>
 </item></SOAP-ENV:Body></SOAP-ENV:Envelope>

停止服务

/home/huihoo/JavaEE5/bin/asant stop-sa
/home/huihoo/JavaEE5/bin/asant shutdown-sa
/home/huihoo/JavaEE5/bin/asant undeploy-sa

JBI Demo

Composite Application

相关链接

精彩图集

Example Application Runtime View
SOA Approach
Deployment View


Proprietary Approach
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱