The CDR resource adaptor comes with the CDR Generation example service. To deploy the example:

1

Start Rhino:

$RHINO_HOME/start-rhino.sh

2

Unpack the CDR resource adaptor distribution package into $RHINO_HOME.

Note If unpacked elsewhere, adjust the client.home configuration property in the build.properties file.

3

The properties in build.properties are used to configure the CDR resource adaptor during deployment. Edit it to verify that the configuration is correct for your local environment. In particular, verify these properties:

Property

cdr.directory={rhino.dir.home}{/}cdr

Specifies

Name of the directory into which the CDRs will be written. The resource adaptor must have write permissions for it. This parameter is mandatory, and its value is set to $RHINO_HOME/cdr.

Note If you intend to modify the value of cdr.directory to point to somewhere else, you need to update the security-permissions in the resource-adaptor-jar.xml deployment descriptor, in the resource adaptor’s deployable unit.

Property

cdr.archivecommand=${rhino.dir.base}/cdr-ra-VERSION/examples/archive-cdr-log.sh {0}

Specifies

Command to run on each CDR file completion. The resource adaptor must have execute permissions for the designated command.

{0} in the command line denotes the absolute path to the CDR file.

If empty, no command is run.

4

To deploy the examples, using Ant, execute the deploy-all target:

$ cd $RHINO_HOME/cdr-ra-VERSION/examples
$ ant deploy-all

This deploys the CDR resource adaptor, example (telnet) resource adaptor, and the CDR Generation example service.

5

Use a telnet utility to connect to the example resource adaptor:

telnet localhost 9999

6

Try these commands:

Command Description Example

send <number>

Sends the number of message events to SLEE

send 1

close

Closes the telnet connection and exits

close

help

Displays the usage commands

help

Tip Source code for the example service can be found in the examples/src subdirectory of CDR resource adaptor package. This code may be freely altered and reused. It is made available under a BSD-style license.
Previous page Next page