Book Image

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

Book Image

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

Overview of this book

BPEL, Business Process Execution Language is the definitive standard in writing and defining actions within business processes. Oracle BPEL Process Manager R1 is Oracle's latest offering, providing you with a complete end-to-end platform for the creation, implementation, and management of your BPEL business processes that are so important to your service-oriented architecture."Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial" is your guide to BPEL design and development, SOA Suite platform troubleshooting, and engineering in a detailed step-by-step guide working real-world examples and case studies. Using industry-leading practices you will start by creating your first BPEL process and move onto configuring your processes, then invoking, orchestrating, and testing them. You will then learn how to use architect and design services using BPEL, performance tuning, integration, and security, as well as high availability, troubleshooting, and modeling for the future. "Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial" is your complete hands-on guide to Oracle SOA BPEL Process Manager 11g.
Table of Contents (20 chapters)
Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial
Credits
About the Authors
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Invoking Java from BPEL


Another option to call Java from BPEL is using SOAP to wrap the Java code as a web service and invoke the web service from BPEL

In order to use a Java method from an already created Java project, you could perform the following steps:

  1. Create a .jar file of your Java project.

  2. To use a Java class from the .jar file inside the BPEL process, copy the JAR in the same project's SCA-INF/lib folder and include the JAR by going to Libraries and Classpath.

  3. Use the Java Embedding activity for writing Java programs to invoke the method from the .jar file.

  4. Use import statements inside the source code of BPEL to import the Java class. Use the import attribute of bpelx:exec for importing Java classes and libraries. Examples are listed as follows:

    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="myjavaprogram.*"/>