Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I invoke Java code from BPEL?

How do I invoke Java code from BPEL?

There are three basic strategies for incorporating Java code into your BPEL process:

1) Wrap your Java code as a Web service 

2) Use Java binding to call Java code as if it were a Web service 

3) Embed your Java code in a BPEL process with a Java extension for BPEL

Wrap Java code as a Web service:

Use a service publishing toolkit, e.g. Apache Axis and Systinet WASP. Add a partnerLinkType to your non-BPEL Web service WSDL to be able to call it from BPEL process. With this approach, only your service publishing toolkit needs access to your Java classes at design and run-time, since the actual protocol for communicating with the Web service will be standard SOAP and XML. Use Java binding to call a Web service:

A BPEL engine can make use of a framework such as WSIF (Web Services Invocation Framework, http://ws.apache.org/wsif) to invoke the Java class[es] directly from your BPEL process as if it were a Web service. This framework enables BPEL to invoke resources which aren't Web services, as if they were a Web service. The Java binding, specifically, has the benefit that you get the performance of a native Java call, however you will have to write a WSDL that describes the interface to your class[es].

Invoke Java code directly from a BPEL process:

Use the extension to BPEL to embed and execute native Java code within a BPEL process. A BPEL engine supporting this standard extension, maps from XML variables in BPEL to Java code, enabling Java access to in-process data. Java classes can be added arbitrarily and used within the process.

This was last published in January 2004

Dig Deeper on Business process modeling and design

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close