An Introduction to Oracle Business Activity Monitoring (BAM) – Part 2: Message Consumption

This is the second part of my introduction to Oracle Business Activity Monitoring (BAM). The first part focused on getting the information into a state that could be consumed by BAM (For this example we decided to employ a JMS queue). Now that we have data in the queue, let’s see how it can be consumed. Part 3 will then focus on how the data can be displayed in a Dashboard.

Step 1: Start the BAM Server

  1. If you’re following along using the Pre-built Virtual Machine for SOA Suite, open the BAM and SX folder on the virtual machine desktop and click Start Business Activity Monitoring.
  2. Monitor the log until you see <Server State Changed to Running>.

Step 2: Create an Outbound Connection Pool

We will reference this connection later on in BAM Composer when we define our Enterprise Message Source.

  1. Launch the WebLogic Admin Console. Log in using weblogic / welcome1.
  2. Select Deployments.
  3. Expand the BamServer node and select BeamAdapter.rar.
  4. Select the Configuration > Outbound Connection Pools tab:
    bam2-00_outbound_conn_pools
  5. Create a New outbound connection pool configuration and select the oracle.tip.adapter.jms.IJmsConnectionFactory:
    bam2-00_outbound_conn_groups
  6. Set the JNDI Name to eis/bam/PaymentQueue:
    bam2-00_jndi
  7. Click OK to save the deployment plan:
    bam2-00_deployment_plan
  8. Opent the eis/bam/PaymentQueue connection factory and set the ConnectionFactoryLocation to jms/PaymentConnectionFactory.
  9. Set the FactoryProperties to:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;
    java.naming.provider.url=t3://localhost:8001;
    java.naming.security.principal=weblogic;
    java.naming.security.credentials=welcome1;

    bam2-00_properties
    For a deeper explanation of these settings, see: Creating an Outbound Connection JNDI.

  10. Save.
  11. Return to Deployments and Update the BamServer.

Step 3: Create a Data Object

The Data Object will hold the data displayed in our dashboards. It will be populated by the Enterprise Message Source that we will create after the data object is created.

  1. Launch BAM Composer. Log in using weblogic / welcome1.
  2. Switch to the Administrator tab.
  3. Create a new Data Object named Payment.
  4. Set the Display Name to e2e_1201_composite/Payment. By prefixing the data object name with a folder name, the e2e_1201_composite sub-folder will be created.
  5. Set the Type to Simple Data Object.
  6. This data object will map to the PaymentForBAM.xsd that was created in Part 1 of this exercise. It will have 6 String columns and 2 Float columns.
  7. Set a Description. This is important as the business analysts that will be creating dashboards from these data objects need to understand what these data objects provide (so my example Description is too generic):
    bam2-01_create_data_object
  8. Add columns to match the PaymentForBAM schema:
    bam2-02_create_data_object
  9. Save.

Step 4: Create the Enterprise Message Source

The Enterprise Message Source will retrieve messages from the PaymentQueue and populate the message contents into the Payment Data Object.

  1. Click the Enterprise Message Sources folder on the left, which will open the dialog to create a new EMS. Set the Name to PaymentEMS and the Display Name to e2e_1201_composite/PaymentEMS. Like with the data object, this will create a e23_1201_composite sub-folder:
    bam2-03_ems

Connection Information

  1. Select eis/bam/PaymentQueue as the Outbound Connection JNDI name. This was the outbound connection JNDI we defined when we created the Connection Pool above.
  2. Set Auto-Start to Yes.
  3. Set the Topic/Queue Name to jms/PaymentQueue:
    bam2-04_conn_info

XML Message Formatting

  1. Set the Message Element Name to PaymentAutorization (note the incorrect spelling) and set the Message Element Namespace to http://www.oracle.com/bampayment. This is the element and namespace defined in our PaymentForBAM.xsd:
    bam2-05_xml_message_format

Source To Data-Object Field Mapping

  1. Copy the Data Object Field names and paste them into the Tag/Attr Name field:
    bam2-06_field_mapping
  2. Save and Start the PaymentEMS.

Step 5: Test

  1. Send a test message using Enterprise Manager Fusion Middleware Control and verify the message data made it to the PaymentValidation data object:
    bam2-07_testExcellent. Now we can start having some fun. Step 3 of this tutorial will cover the steps required to create a dashboard.

References

 

 

Advertisements

2 thoughts on “An Introduction to Oracle Business Activity Monitoring (BAM) – Part 2: Message Consumption

  1. Pingback: An Introduction to Oracle Business Activity Monitoring (BAM) – Part 3: Dashboard Design | W Brian Leonard

  2. Pingback: An Introduction to Oracle Business Activity Monitoring (BAM) – Part 1: Message Production | W Brian Leonard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s