Real Time Information Director User Documentation
RTID Subscriptions
Hewlett-Packard Company 13 529618 - 002
# XML Input File to register Subscriptions (optional)
INPUTFILE=SubServ.xml
# ANSI NAME of catalog
CATALOG=DATA1
# ANSI NAME of schema
SCHEMA=RTSCDB
Registering Subscriptions
Once the Subscription module is running, you can configure subscriptions to deliver
documents to your applications. You use the RegSubs.sh program to register
subscriptions.
You describe subscriptions in an XML file that serves as input to RegSubs.sh. These
descriptions can be modified to suit the requirements of your solution before they are
loaded into the Subscription Store. Once subscriptions have been registered, you can
browse or delete them using the RegSubs.sh program.
The Subscription Module comes with a set of canned subscriptions for the RTSC
example, in the file named $RTID_HOME/bin/SubServ.xml.
A Subscription has three attributes:
• A SQL statement to define the event in the Data Store that triggers the
subscription
• The name of a JMS Queue or Topic to which a document is delivered when this
event occurs
• The name of the document to be delivered when this event occurs
The input file must conform to the following schema, defined in the file
$RTID_HOME/bin/SubServ.xsd.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="Subscriptions">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="SubInfo" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="DocName" type="xs:string"/>
<xs:element name="DestQueueName" type="xs:string" minOccurs="0"/>
<xs:element name="DestTopicName" type="xs:string" minOccurs="0"/>