Monitoring the Oracle B2B Infrastructure

32-4 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite

7. Click Subscribe.

8. Click Test to test a selected event. This action enables you to publish a test event

that subscribers can act upon. The Test Event dialog appears. 9. Specify the XML payload to use in the test.

10. Click Publish.

For more information, see the following documentation: ■ Section 1.2.8, Introduction to the Contents of SOA Composite Applications ■ Oracle Fusion Middleware Developers Guide for Oracle SOA Suite for details about business events

32.3 Managing Business Event Subscribers

You can also create, edit, and delete existing database subscriptions. When a business event is published, service components and database agents can subscribe to it. Use this page to view all subscriptions to business events. This page also enables you to manage event subscriptions by database agents. Service component subscriptions are Database Agent Specify a database agent name or click Create Agent to create an agent. The agent listens for and subscribes to appropriate events when they are published. Consistency Level Select one of the following options: ■ Guaranteed : Delivers events to the subscriber asynchronously without a global transaction. The subscriber can choose to create its own local transaction for processing, but it is committed independently of the rest of the event processing. By default, guaranteed delivery attempts to deliver the event to the subscriber for three times. If it cannot deliver the event in these three attempts, then the delivery fails. Also, there is a possibility that a system failure can cause an event to be delivered multiple times because there is no global transaction. If the subscriber throws an exception or fails in any way, the exception is logged, but the event is not resent. ■ Immediate : Delivers events to the subscriber on the same transaction and same thread as the publisher. The publish call does not return until all immediate subscribers have completed processing. If any subscribers throw an exception, no additional subscribers are invoked and an exception is thrown to the publisher. XPath Filter If you want to filter the event, specify an XPath expression. When the subscription is delivered and the expression logic is satisfied, the event is accepted for delivery. If the logic is not satisfied, the event is not delivered. Note: Enforcement of policies for event subscriptions is not supported in this release. You can attach or detach a policy to or from a service component that subscribes to a business event such as Oracle Mediator without being warned. This action does not result in any errors; policy enforcement simply does not occur. Field Description Managing Business Events 32-5 created in Oracle JDeveloper during design time and cannot be modified in Oracle Enterprise Manager Fusion Middleware Control. To manage business event subscribers: 1. Access this page through one of the following options:

2. Click Subscriptions.

The Subscriptions page is displayed the following details: ■ A utility for searching for a specific subscription by specifying criteria and clicking Search. Click the Help icon for details. ■ The database subscriptions, including the event name, namespace used, subscription agent name, optionally defined XPath filters, consistency level, and number of failed deliveries. You create database subscriptions to business events on this page during runtime. ■ The component subscriptions, including the event name, namespace used, the service component subscribing to the event, the SOA composite application, optionally defined XPath filters, and the consistency level. Notes: ■ If your SOA composite application includes a business event subscription, and you deploy different revisions of the composite, all event subscriptions from all revisions of the composite are active and receive messages. To receive the event with the latest revision of the composite only, it is recommended that you retire all previous revisions of the composite. ■ A BPEL component in a retired SOA composite application cannot receive a business event, even if the event is associated with a noninitiating receive activity of the BPEL process. From the SOA Infrastructure Menu... From the SOA Folder in the Navigator... 1. Select Business Events. 1. Right-click soa-infra. 2. Select Business Events. 32-6 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite

3. Click the appropriate icon below the Database Subscriptions title to create, edit,

or delete a database subscription.

4. Click Manage Database Agents to edit the PLSQL procedure or delete agents not

currently subscribing to events.

5. In the Subscription Component column, click a service component to access its

home page.

6. In the Composite column, click a SOA composite application to access its home

page. For more information about business events, refer to Oracle Fusion Middleware Developers Guide for Oracle SOA Suite.

32.4 Recovering from Business Event Faults

You can recover from business event faults that are identified as recoverable. To recover from business event faults:

1. Access this page through one of the following options:

Note: For business events implementing EDN - JMS, the Create Database Agent icon, Edit Database Agent icon, Delete Database Agent icon, and Manage Database Agents button are not displayed.