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


Start Rhino:



Unpack the CDR resource adaptor distribution package into $RHINO_HOME.

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


The properties in 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:



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 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.


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


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.


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.


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

telnet localhost 9999


Try these commands:

Command Description Example

send <number>

Sends the number of message events to SLEE

send 1


Closes the telnet connection and exits



Displays the usage commands


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