Description
===========

This directory contains simple example of the java Transaction API usage.

Transaction1.java is using the Option 1 (Transaction start/stop)
Transaction2.java is using the Option 2 (TranReport report)

SubTransaction1.java is using the Option 1 (Transaction start/stop) with sub-transaction
SubTransaction2.java is using the Option 2 (TranReport report) with sub-transaction

SubTransaction1_2.java is identical to SubTransaction1.java, but the parent transaction is only 
an aggregation of a set of transactions (i.e. it doesn't have its own metrics).

How to use it:
==============

1) Compile the java files, and specify the following jar files in your classpath:
  - jmx jars files:  jmxremote.jar jmxremote_optional.jar jmxri.jar jdmkrt.jar
  - Monitoring Framework SDK jar file

2) Run the example:
      # java -classpath <classpath> com.sun.mfwk.examples.instrum.SubTransaction1 <nb loop>


Note: The Transaction1.java example also provides a JMX RMI connector.
So a 'rmiregistry' has to be launched before starting this example.
