Invoking Session bean from the BPEL process
Session beans are defined by the Java Enterprise Edition specification. They are divided into stateless and stateful beans. A stateless session bean operates on the operation level. This means that after the operation is executed, the state of the session bean is not preserved. On the contrary, stateful beans preserve state across a multi-operation level.
This recipe will explain how to call a session bean operation from the Java Embedding activity from the BPEL process.
Getting ready
To complete the recipe, we will create a project in JDeveloper and a session bean that will act as exchange money operation on ATM. The session bean will calculate how much money the customer will get, based on the amount ...
Get BPEL and Java Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.