Getting started


Installation using binary packages

Right now rpm packages are available. Packages needed for a basic platform installation are the message oriented middleware (xmlblaster) and oap-xmlblaster-tools (tools provided to facilitate publish/suscribe to the MOM) both available from the downloads section.

The MOM (xmlblaster) must only be installed in one machine, and oap-xmlblaster-tools in the machines destinated to contain platform adapted applications. If you only want to test the platform, you will probably want to install both packages in the same machine.

Download the packages and install them:

If you prefer to use yum, first copy the file ingent-yum.repo to /etc/yum.repos.d, and install:

Configuration

Xmlblaster

After installing xmlblaster package, the file etc/xmlblaster/wrapper.conf must be edited, to make sure that the path to java is correct. This is the line that must be changed:

xmlblaster installs as a daemon, so it be started like this:

and stopped like:

If xmlblaster has been installed from the rpm package, by default it will start its xml-rpc server at port 8080.

Oap-xmlblaster-tools

In the machine where oap-xmlblaster-tools is installed, two programs are available to publish/suscribe to the MOM. To publish there is oappublish, and to suscribe there is the daemon oapdaemon. Once the packages are installed, edit /etc/oap/oapconf.rb in each machine where oap-xmlblaster-tools is installed, and edit the following parameters:

After this you should be able to execute both programs. oappublish is installed in /usr/bin/oappublish, so you should be able to execute it just typing oappublish from any path. To execute it type:

Where TOPIC must be one of the topics configured in /etc/oap/oapconf.rb, and the message is what you intend to publish to the MOM (in our case a xml message). This is an example of what you should see after executing oappublish on a valid topic, configured with the previous oapconf.rb example.

oapdaemon is installed in /usr/share/oap/oapdaemon. To execute it type:

This is the output you can see in the log file:

As it can been seen in the output, oapconf.rb is configured to make oapdaemon always call /usr/share/oap/oapdaemon/oapdistribute.sh when a message is received, no matter the topic. A developer who wants its application being called when a message is received, should add a line to oapdistribute.sh, or configure oapconf.rb to call its application when a message is received in the desired TOPIC. For instance, a developer could put something like this to oapdistribute.sh to make IMS adaptor and Sugar CRM adaptor being called when a message is received: