next_inactive up previous


CASL: Administration Guide
DocumentId:GradSof-CASL-r-AD-08.08.2001-1.0.0

Installation

Using Binary Distributive

Binary distributive is supplied in two forms:

in form of executable file archive

in the form of cpio archive

Using Source Code Distributive

Necesary Software

Compilation

Using

You can use CASL component container in your program complexes, or use CASL API in your programs.

For details please refer to "CASL: Programming Guide", for the administration it's important to know:

Executables and shared libraries location

Command line options

  --log-to-file <argument>      log output to file <argument>.
  --log-to-stderr               duplicate messages output to console.
  --no-syslog                   disable syslog output.
  --services-config <argument>  read services configuration from file <argument>.
  --daemonize                   daemonize after initialization.
  --help                        show command line options list.
  --config <argument>           read options from specified file <argument>

Services configuration file

Services configuration stored in XML file, where :

CASL loads all services, listed in configuration file and starts them.

Configuration file example:

<CASL>
<Service Name="PIInclude1" Library="libPIInclude1">
  <parameter>
    <name> InputFile </name>
    <value> input.xml </value>
  </parameter>
  <parameter>
    <name> OutputFile </name>
    <value> output.xml </value>
  </parameter>
</Service>
<Service Name="CORBA" Library="libCASL_CORBA_TAO">
  <parameter>
   <name> ORBargs </name>
   <value> 
       -ORBInitRef NameService=corbaloc::localhost:1234/NameService 
   </value>
  </parameter>
</Service>
<Service Name="MyThirdService" Library="libMy3" >
  <parameter>
    <name> n1 </name> <value> v1 </value>
  </parameter>
  <parameter>
    <name> n2 </name> <value> v2 </value>
  </parameter>
</Service>
</CASL>

XML DTD

<!ELEMENT CASL  (Service+ )>
<!ATTLIST CASL  LibraryPath   CDATA #IMPLIED >

<!ELEMENT Service  (parameter*)>
<!ATTLIST Service  Name CDATA  #REQUIRED
                   Library   CDATA  #REQUIRED >

<!ELEMENT parameter  ((name, value)* )>

<!ELEMENT name (#PCDATA) >
<!ELEMENT value (#PCDATA) >

Changes list



Footnotes

... /usr/local/bin1
in more general case: <prefix>/bin
... /usr/local/lib2
more general: <prefix>/lib
... /usr/local/lib/CASL3
more general: <prefix>/lib/CASL

next_inactive up previous
GradSoft