Testing Part C Source
Deploy the project AirAlliance_CA. In the AirAlliance_CA project, under
Test | TestReservation, edit input.xml with some values. In the AirAlliance_CA
project, execute the TestReservation test case under the Test folder.
Now, check the Itinerary table of SouthAirDB. Look how the DB is updated. Also
check the output.xml file for the confirmation message from NorthAir web service.
Additionally, check if the guest information is written to the file specified in the
StoreItinerary.wsdl file.
Part D ??“ Sending JMS Messages
So far, the BPEL process interacted with two different partner systems. The first
system was an EJB, deployed as a web service. The second system was a wrapper
service that performed CRUD operations on a partner DB. This part of the example
shows how the BPEL process sends messages to EastAir's JMS Queue. The BPEL
process sends Itinerary data to EastAir's JMS Queue. EastAir's JMS Queue Listener
can get the itinerary information for further processing.
In the same way we created StoreItinerary.wsdl, create another WSDL file called
SendItinerary.wsdl of type JMS binding. Make changes to the WSDL in order to
specify connection information. Consider the following code:
targetNamespace="http://j2ee.
Pages:
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217