Calculator Service Example Running on ActiveBPEL™ Engine

Installation Instruction

Written by Prof. Haiping Xu and Pratik K. Kadakia
Computer and Information Science Department
University of Massachusetts Dartmouth
June 10, 2006


1. Install JDK 5.0 (i.e., JDK 1.5.0), JWSDP 1.6 and Tomcat 5.0 for Java WSDP as described
   in the installation guide for the loan approval example.
   
2. Download the most recent version of the ActiveBPEL engine and extract the distribution 
   from the archive. You can also download the ActiveBPEL engine from here.

   Run the script install.bat. It copies the contents of lib into $CATALINA_HOME/shared/lib 
   and creates the directory $CATALINA_HOME/bpr, where BPEL process .bpr archives are deployed.

4. To start the ActiveBPEL engine, start the Tomcat server. 

5. Copy MathServices.zip into C:\ and extract here. 
   Build and deploy the "sadd" web service as follows:
   cd C:\MathServices\jaxrpc\sadd-service
   ant build
   ant deploy

   To verify that the service has been successfully deployed, open a browser window 
   and specify the service endpoint's URL as follows:
   
   http://localhost:8080/sadd-jaxrpc/sadd?WSDL

   You should see the following page.

   

   Similarly, build and deploy the "ssub" web service as follows:
   cd C:\MathServices\jaxrpc\ssub-service
   ant build
   ant deploy

   To verify that the service has been successfully deployed, open a browser window 
   and specify the service endpoint's URL as follows:
   
   http://localhost:8080/ssub-jaxrpc/ssub?WSDL

   You should see the following page.

   

   
6. Deploy the Calculator BPEL process
   
   Copy CalculatorBPELService.zip into C:\ and extract here.
   Open ActiveBPEL Designer v2.0 and import "Existing Projects into Workspace", 
   select root directory "C:\CalculatorBPELService", Click the button "Finish".

      

   
   Deploy the Calculator BPEL process onto ActiveBPEL engine:
   Export "Business Process Archive File", select "CalculatorBPELService". Click on
   the button "Finish". 

   

   Verify the deployment:
   To verify that the BPEL service has been successfully deployed, open a browser 
   window and specify the service endpoint's URL as follows:
   
   http://localhost:8080/active-bpel/services/CalculatorService?wsdl

   You should see the following page.

   

   You may also verify the deployment of the BPEL process from the following page:

   http://localhost:8080/active-bpel/servlet/AxisServlet

7. Deploy the Calculator client process
   Copy CalculatorClient.zip into C:\ and extract here.
   cd C:\CalculatorClient
   ant deploy

   Test the Math Web services (WebServicesTestClient.java)
   cd C:\CalculatorClient
   ant ws-test-client

   


   Run the BPEL process client (BPELTestClient.java)
   cd C:\CalculatorClient
   ant client

   


   Instead of running the command line client, you can also run the BPEL process
   client using the following JSP page:
    
   http://localhost:8080/bpel_calculator_client_page/index.jsp

   

8. Related web sites:

   http://java.sun.com/j2se/1.5.0/download.jsp
   http://java.sun.com/webservices/downloads/webservicespack.html
   http://java.sun.com/webservices/docs/1.3/tutorial/doc/index.html
   http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
   http://www.activebpel.org/docs/samples.html
   http://www.activebpel.org/docs/deploy.html
   http://www.activebpel.org/docs/tutorial.html
   http://www.activebpel.org/docs/samples.php