Notification Support

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (17)

View Page History
The notification configuration files are located under _$DSB/conf/_ folder. You can configure kernel and business services level from these configuration files.

h2. \*-topicset.xml conf/topics/*-topicset.xml

Describes the default TopicNamespace topicsets supported by the notification engine. For example:
{code:language=xml}<?xml version="1.0" encoding="utf-8"?>
<wstop:TopicNamespace name="FiremanEvents"
<wstop:TopicSet xmlns:wstop="http://docs.oasis-open.org/wsn/t-1">
<!-- DSB topics -->
<tns:DSBTopic xmlns:tns="http://www.petalslink.org/resources/event/1.0"
wstop:topic="true" />
<tns:MonitoringTopic xmlns:tns="http://www.petalslink.org/resources/event/1.0"
wstop:topic="true" />
targetNamespace="http://www.petalslink.org/dsb/topicsns/" <tns:CreationResourcesTopic
xmlns:tns="http://www.petalslink.org/resources/event/1.0" wstop:topic="true" />
xmlns:msg="http://www.example.org/fireman/" </wstop:TopicSet>{code}
xmlns:wstop="http://docs.oasis-open.org/wsn/t-1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docs.oasis-open.org/wsn/t-1">
<wstop:Topic name="DSBTopic" messageTypes="msg:stateEventNotificationMessage"/>
</wstop:TopicNamespace>{code}

h2. notification.cfg
You can configure topic sets for :

* kernel service in the kernel-topicset.xml file
* business services in the business-topicset.xml file

h2. conf/notification.cfg

The default configuration file for the notification engine. Provides a way to define the engine internal endpoint/interface/service values and a list of supported topics (as CSV list) out of the topicnamespace defined in the topics.xml file. values. For example:
{code}#Configuration file for the notification engine

interface={http://dsb.petalslink.com/notification}NotificationInterface
service={http://dsb.petalslink.com/notification}NotificationService
#supported-topics=topicA,topicB,topicC,DSBTopic{code}

h2. subscribers.cfg
?
{info}You do not have to change this file{info}

h2. conf/subscribers.cfg

This file allows to create subscribers at DSB startup. All the subscribers defined in this file will be automatically added as subscribers in the notification engine and so will receive notifications when some notifications are published in the associated topics. For example:
{code}subscriber0.consumerReference=http://localhost:9000/services/RawService
Note that you can add several subscribers using the same format, just change the prefix (subscriber0) in order to be unique in the fine.

h2. conf/consumer.cfg

This file allows the DSB to automatically subscribes to notifications at startup and so to receive notifications when they are published in the associated topics. Note that it is also possible to subscribe on behalf of others just by setting a consumerReference which is not the DSB.