Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Business Process Execution Language for Web Services 2nd Edition

You're reading from   Business Process Execution Language for Web Services 2nd Edition

Arrow left icon
Product type Paperback
Published in Jan 2006
Publisher Packt
ISBN-13 9781904811817
Length 372 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Business Process Execution Language for Web Services
Credits
About the Authors
About the Reviewers
Preface
1. Introduction to BPEL and SOA FREE CHAPTER 2. Web Services Technology Stack 3. Service Composition with BPEL 4. Advanced BPEL 5. Oracle BPEL Process Manager and BPEL Designer: Overview 6. Oracle BPEL Process Manager: Advanced Features 7. MS BizTalk Server BPEL Syntax Reference Index

Java Code Embedding


Java code embedding is another method for integrating Java code and resources into BPEL processes. It allows us to embed Java code snippets directly into BPEL process code. This provides the opportunity to use Java for certain aspects where BPEL does not provide an appropriate activity. It also provides a way to use Java code to call other Java resources (EJBs, JCA, JMS, etc.). Compared to WSIF, Java code embedding has several drawbacks. The most important is that it requires proprietary extensions to BPEL code, thus limiting the portability of BPEL processes.

To embed Java code snippets into BPEL, Oracle provides a custom BPEL activity called <exec>, defined in the http://schemas.oracle.com/bpel/extension namespace. This namespace is usually declared with the bpelx prefix, so we write the activity as <bpelx:exec>.

The BPEL server will execute the Java code embedded in the <exec> activity within its JTA (Java Transaction API) transaction context. If the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image