Running the Loan Approval Example on ActiveBPEL™ Engine

Installation Instruction

Written by Professor Haiping Xu
Computer and Information Science Department
University of Massachusetts Dartmouth
December 28, 2005


1. Install JDK 5.0 (i.e., JDK 1.5.0)
   
   Set up the following environment variables:
   JAVA_HOME	C:\Program Files\Java\jdk1.5.0_01

   Add the following path:
   C:\Program Files\Java\jdk1.5.0_01\bin 

2. Install JWSDP 1.6 & Tomcat 5.0 for Java WSDP (based upon Tomcat 5.0.19 that implements 
   the Java Server Pages 2.0 and Java Servlet 2.4 specifications)
   You can also download the above two packages from here.
   
   Set up the following environment variables:
   JWSDP_HOME C:\Sun\jwsdp-1.6
   ANT_HOME C:\Sun\jwsdp-1.6\apache-ant
   CATALINA_HOME C:\Sun\tomcat50-jwsdp

   Add the following path:
   C:\Sun\jwsdp-1.6\jwsdp-shared\bin;C:\Sun\jwsdp-1.6\apache-ant\bin

3. 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. You should see the following page 
   at http://localhost:8080/active-bpel
	
   
5. Copy loan_approval.zip into C:\ and extract here.
   
6. Deploy the BPEL process
   cd C:\loan_approval
   ant deploy
  
   Verify the deployment:
   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/active-bpel/services/ApproveLoan?wsdl

   You should see the following page.

   

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

   


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

   


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

   

9. 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