beautypg.com

Faulthandling, Building faulthandling on windows, Deploying faulthandling on nonstop – HP Integrity NonStop J-Series User Manual

Page 190

background image

NOTE:

The Axis2/Java distribution includes several sample applications, of which only

FaultHandling and MTOM are discussed here for demonstration purposes. To run a sample
application that is not discussed in this section, use the building, deploying, and running steps
explained for FaultHandling and MTOM as reference.

This section describes the following steps for the sample applications:

Building sample applications on a Windows system

Deploying sample applications on a NonStop system

Running sample applications

FaultHandling

FaultHandling demonstrates Exception Handling using the WSDL faults and invokes BankService
webservice when it is run.

The intended users of this application are bank customers.

This section describes the following steps for FaultHandling:

“Building FaultHandling on Windows” (page 190)

“Deploying FaultHandling on NonStop” (page 190)

“Running FaultHandling” (page 192)

Building FaultHandling on Windows

To build FaultHandling on your Windows system, complete the following steps:

1.

Go to the <Axis2 Home>\samples\faulthandling directory on your Windows system,
using the command:

command prompt> cd \samples\faulthandling

For example:

command prompt> cd C:\axis2-1.5.2\samples\faulthandling

2.

Generate the service. To do so, complete the following steps:
a.

Clean the output directory (if already present) using the command:

command prompt> ant clean

b.

Create the service archive file (BankService.aar) in the <Axis2
Home
>\samples\faulthandling\build\service

directory on your Windows

system, using the command:

command prompt> ant generate.service

FaultHandling is now ready to be deployed under the Axis2/Java web application on the NonStop
system.

Deploying FaultHandling on NonStop

To deploy the BankService webservice under the Axis2/Java web application, complete the
following steps:

190 Axis2/Java Framework

This manual is related to the following products: