CERN -> IPT Group -> FrameMaker at CERN
Information Service User's Guide

Chapter 10

Building and running IS applications


T his chapter explains how to compile and build IS example applications and also how to setup the IS repository in order to run these examples.

Information Provider and Information Receiver examples

There are two IS example applications installed as a part of the Online software release. The first one, written in C++, publishes information to the IS and another one, implemented in Java, reads this information. They are using the information classes defined with the OKS schema editor and stored in the is_examples.xml file, that is also included to the release. They will be explained in more detail in this chapter.


Several IS examples are installed in the <TDAQ Release>/share/examples/is directory along with the makefiles which can be tuned to be used with different operating system supported by the Online software.

10.1.1 Information Provider example application

Information Provider example contains one C++ file create_info.cc which shows how to use the ISInfoDictionary class for publishing information.

10.1.2 IS reader example application

IS reader example shows how to get information from the IS and also how to get the IS type description for a specific IS type. This example is implemented in Java and contains one file ReadInfo.java.

10.1.3 Makefiles

The makefile is tuned by default to the Linux RedHat 7.3 operating system and GCC version 2.95 compiler. If you want to build examples for another operating system you have to modify the following makefile variables:

10.1.4 Compiling examples

You can compile and build the example applications by typing the following command in the respective examples sub-directory:

> make

10.2 Running IS examples

10.3 Troubleshooting Tips


2 July 1998 - WebMaster
Copyright © CERN 1998