All BPEL processes start with receive or pick activity, which is responsible
for initiating a process. When a Receive activity is invoked, BPEL runtime will create
BPEL process instance and hand the message to the process instance for processing.
In the above figure, the BPEL process receives a request. To fulfill the request,
it invokes the involved web service (NorthAirWS using the partner link
NorthAirWS_PL) and finally responds to the original caller. Since the BPEL process
communicates with another web service, it relies on the WSDL description of the
web service (NorthAirWS WSDL) invoked by the process.
Chapter 10
[ 227 ]
You now know how to create a web service from an EJB. Let us do that one more
time. First we need to create an EJB project. Select File | New Project. Select an
EJB Module.
Give NorthAirEJB as the name for our new EJB project. You can either select
Glassfish V2 or Sun Java System Application Server as the target Server. You can't
choose any other Java EE server you have already configured because we will
be dependent on ESB components integrated with Glassfish/Sun Java System
Application Server.
When you have the NorthAirEJB project ready, you have to create a Web Service
(session bean) to consume requests. Right-click on NorthAirEJB and select
New | Web Service.
Pages:
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202