Back to Clock Service Examples Page Back

Clock Example: Clock Catalog

Description

This example queries the entries of a ClockCatalog object and displays their names on standard output. The example code tries to resolve a reference to the standard ClockCatalog object as defined in the OMG "Enhanced View of Time" specification (the "ClockService" ObjectId).

Source File

The source file for the Clock Catalog example is:

ClockCatalogQuery.java

How To Run This Example

  1. Start the Clock Service from the command line or by using the Administration Manager.

    From the command line use:

    server -start ClockService

    Using the Administration Manager:

    Start the Administration Manager, right click on the ClockService node and select Start from the pop-up menu.

    Note: From a default Openfusion installation, there should be clocks bound to the clock catalog when the ClockService is started.

  2. Start the client:
    run com.prismt.cos.CosClockService.examples.ClockCatalogQuery


PrismTech TOP
Top