Using the monitor

Now that our application has created a Managed object, we can use the ActiveSpaces® Transactions monitor to see that object in persistent shared memory.

  1. Start the monitor by using the monitor command line tool and specifying the path to the shared memory file for the application node, for example:

    monitor /opt/ast/nodes/A/ossm
  2. On the left-hand side of the screen (under the File menu) there are 3 icons. Select the middle one (the tool tip says "Model View").

  3. The left-hand pane will now show a listing of all Java types in shared memory. Expand quickstart.QuickStartObject, and click the single object reference for that type. In the right-hand pane, you will see the details of the QuickStartObject instance that the application created.

    Displaying the QuickStartObject in the ActiveSpaces® Transactions monitor

    Figure 2.9. Displaying the QuickStartObject in the ActiveSpaces® Transactions monitor


  4. Each time you run the application, another instance of quickstart.QuickStartObject will be created in the monitor. Experiment with adjusting the message or defining additional Managed types.