Using BPEL for Building ABCS

11-12 Developers Guide for Oracle Application Integration Architecture Foundation Pack

11.4.1.3 When to Use JCA Adapters, Database, File, JMS, or AQJMS, for Outbound Interactions

In situations in which the message submission is decoupled from the processing of the message, usage of queues is suggested. When JMS queues are used, they must be accessed using JMS Adapter. The message is enqueued to the JMS queue by the ABCS and the application would dequeue the message. Participating applications making an outbound interaction in a synchronous mode alone should send the requests using SOAPHTTP. For more information about JMS Adapters, see Oracle Fusion Middleware Configuring and Managing JMS for Oracle WebLogic Server.

11.4.2 Using BPEL for Building ABCS

AIA recommends using a BPEL component to build an ABCS composite. BPEL is the most effective solution when: ■ You have a long-lived process In scenarios in which you have a long-lived process that may take hours or even days, BPEL is the best technology choice. In this case, BPEL persists dehydrates the process at certain hook points and then bring the process to life when needed. ■ You need complex orchestration capabilities In scenarios that require complex orchestration, parallel processing, and multiple conversations with participating applications, as well as with integrated services such as BPA, BAM, Workflow, and Rules Engine, BPEL is the most effective solution. ■ You have content augmentation and validation that cannot be done using XSLT In cases in which the decision-making and validation is not simple enough to perform using XSLT, other means are needed such as the standard BPEL procedural constructs or even calling out to the Rules Engine. BPEL enables you to easily perform fairly complicated decision trees and route the results to different partners. ■ You need aggregation or disaggregation In scenarios in which the ABCS must make multiple calls to the application to process a message or to collect data and then consolidate it in one message, BPEL is the suitable technology. BPEL constructs enable you to split or consolidate payloads and aggregate or disaggregate calls. The BPEL process is also responsible for maintaining the state and handling transactions in between invocations. ■ You must augment the participating application functionality. Tip: AIA highly recommends that participating applications making an outbound interaction in an asynchronous mode use message queues to publish the requests. AIA recommends this approach because it allows for high scalability as well as a better end-user experience. Similarly, the ABCS making an outbound interaction to the applications must assess the tasks to be performed by the application. Use of message queues to communicate with the applications in situations in which applications need longer periods to perform the tasks. Designing Application Business Connector Services 11-13 For more information, see Oracle Fusion Middleware Developers Guide for Oracle SOA Suite. 11-14 Developers Guide for Oracle Application Integration Architecture Foundation Pack 12 Constructing the ABCS 12-1 12 Constructing the ABCS This chapter describes how to construct an Application Business Connector Service ABCS. It lists the prerequisites that are necessary before you set out to construct an ABCS and briefly introduces you to the concepts of SOA composite application. It provides information about constructing an ABCS using Oracle Application Integration Architecture AIA Service Constructor as well as constructing one entirely using Oracle JDeveloper and lists the tasks that a developer should manually complete after creating an ABCS composite using AIA Service Constructor. Regardless of whether the ABCS is developed either using AIA Service Constructor or entirely using JDeveloper, you should review the relevant sections depending upon the capabilities to be implemented in the ABCS. This chapter includes the following sections: ■ Section 12.1, Constructing an ABCS