Why and when to perform this task
You will use the business rules sample application for this scenario,
so you should already have the web page containing this application already
open. Keep it open, since you will be running the sample after you specify
monitoring parameters. Ensure that you have already run the sample at least
once, so that it will appear in the list of functions that you can select
to monitor.
Steps for this task
- Open the administrative console.
- In the navigation pane, click Servers > Application
Servers.
- Click server_name.
- Under Troubleshooting, click Logging and tracing
- Click Change Log Detail levels
- Select the Runtime tab.
- Expand the tree for WBILocationMonitor.CEI.BR and
you will see five event types under the WBILocationMonitor.CEI.BR.brsample.* element:
- WBILocationMonitor.CEI.BR.brsample_module.DiscountRuleGroup.Operation._calculateDiscount.ENTRY
- WBILocationMonitor.CEI.BR.brsample_module.DiscountRuleGroup.Operation._calculateDiscount.EXIT
- WBILocationMonitor.CEI.BR.brsample_module.DiscountRuleGroup.Operation._calculateDiscount.FAILURE
- WBILocationMonitor.CEI.BR.brsample_module.DiscountRuleGroup.Operation._calculateDiscount.SelectionKeyExtracted
- WBILocationMonitor.CEI.BR.brsample_module.DiscountRuleGroup.Operation._calculateDiscount.TargetFound
- Click on each of the events and select finest.
- Click OK.
- Switch the business rules sample application page, and run the
application once.
- Go back to the administrative console, and select Integration
Applications > Common Base Event Browser from the navigation pane.
- If you are running your server on node within a Network Deployment
environment, then you may need to modify the Event Data Store field
to include to the names of your server and node. Enter the string in the following
form: 'cell/nodes/node_name/servers/server_name/ejb/com/ibm/events/access/EventAccess'.
- Press Get Events.
Result
You should now see a list in the upper pane of the Common Base Event
browser of the four business rule events that were published to the CEI server
when you ran the sample application. Select one of the events, and you will
be shown the contents of the event in the lower pane. Compare this to the
events published to the loggers. Notice that the browser has parsed the original
XML string that was published to the CEI server, and that the business object
code in the ENTRY and EXIT events was converted from the original hexadecimal
format to readable XML. You may wish to go back through this
exercise and change the level of detail from
finest to
fine or
finer,
and compare the differences between the events.
After completing this exercise,
you should understand how to select service component event points for monitoring
using the CEI server. You have seen that the events fired in this type monitoring
have a standard format, and that the results are published to a database.
You should also be able to use the Common Base Event browser to retrieve events
from the database, and view the information for individual events in a parsed
table format on the browser.
What to do next
If you no longer want to monitor the business rules sample application,
you can go back to through the steps outlined here and reset the level of
detail for the sample events to
info.