如何部署BPEL流程

This document describes how to deploy a BPEL process so the ActiveBPEL™ engine can execute it. For information about installing the engine, see Installing and Configuring the ActiveBPEL Engine.

To deploy a BPEL process, you must create and install a deployment archive containing your BPEL process files. To do this, you will use the jar utility, which means you will need a Java SDK. Any version of the JDK should work. BPEL processes deployment has been tested using the 1.4.1 SDK.

Deploying Your BPEL Process

Deploying a BPEL process involves creating a deployment archive file (a JAR with an extension of ".bpr") and copying that to your servlet container. To create this archive, you need to organize your files into a particular directory structure, create one or two configuration files, and then create an archive from that directory.

Create a directory for your deployment files; we'll name it mybpel in this example. Create the subdirectories

  • bpel
  • META-INF
  • wsdl
  • partners (optional)

The WSDL catalog (wsdlCatalog.xml) file, partner definition (.pdef) files, and process deployment descriptor (.pdd) files are described in ActiveBPEL Engine File Formats.

As an example, let's say you have one BPEL file my_process.bpel and two WSDL files service1.wsdl and service2.wsdl. Your directory structure would look something like this:

Figure 1. Process deployment directory structure

The partners directory is not necessary unless you have .pdef files.

Using this directory structure, create the archive and copy it to your servlet container. Here's how you would deploy your BPEL process to Tomcat (remove "partners" from the jar command if you don't have a partners directory):

Windows:

C:\> cd mybpel
C:\mybpel> jar cf mybpel.bpr *.pdd META-INF bpel partners wsdl
C:\mybpel> copy mybpel.bpr $CATALINA_HOME/bpr


Unix:

% cd mybpel
% jar cf mybpel.bpr *.pdd META-INF bpel partners wsdl
% cp mybpel.bpr $CATALINA_HOME/bpr

It is fine for more than one .bpel file or .pdd file to live in the same .bpr deployment archive.

Your WSDL files could live anywhere, even on another machine. Packaging them inside the .pdd lets the ActiveBPEL engine get to them quicker.

The Engine

If the ActiveBPEL engine is running, soon after you deploy your BPEL process the ActiveBPEL engine will notice the .bpr file and read it. Your BPEL process is ready to use.

SeeStarting the ActiveBPEL Enginefor instructions on starting and stopping the engine.

EngineStatus Informationdescribes how to view the runtime status of Web services, the engine, and BPEL processes.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值