In order to run the IS example application one has to do the following steps.
Setup your environment so that you have access to the Online software release. Normally it is done by sourcing the setup script. For example for the Online Software release on AFS one has to execute the following command:
> source /afs/cern.ch/atlas/project/tdaq/cmt/bin/cmtsetup.[c]sh <release name>
For up-to-date instruction see:
http://lnxatd01.cern.ch/cmt/releases/
Start two IPC servers. One of them is used to run the general partition and another implements the named partition to be used by the IS examples.
> ipc_server &
> ipc_server -p MyPartition &
Now run the is_server application:
> is_server -p MyPartition -n MyServer&
Start the rdb_server with the XML files which contain description of your IS types:
> rdb_server -p MyPartition -d ISRepository -S \
${RELEASE_DIR}/share/examples/is/data/is_example.xml
The -d switch defines the database name that must always be the ISRepository for the IS meta-information server. The -S parameter defines a list of the XML files which contain IS informations definition.
Run the information provider example by giving the following command (in the cpp sub-directory):
> create_info -p MyPartition -n MyServer -P Person1 -E Employee1
The -P and -E switches defines the names of the information objects that will be created in the MyServer IS server which belongs to the MyPartition partition.
6. Read the Is IS information |
Run the IS information reader application by executing the following command (in the java sub-directory):
> java -classpath \
.:${RELEASE_DIR}/share/lib/ipc.jar:${RELEASE_DIR}/share/lib/is.jar:${RELEASE_DIR}/share/lib/rdb.jar ReadInfo MyServer Person1 Employee1 \
MyPartition
2 July 1998 - WebMaster | Copyright © CERN 1998 |