Skip to main content

Product: OpenFusion Notification Service

Version: ALL

 

Description:

Is it possible to start the Notification Service with a specific channel configuration and use this with different Notification Services on start up?

 

Resolution:

Objects within the Notification Service, such as channels, admins, proxies and filters are persistent. Once you have configured the service to contain these objects they will remain when you stop and restart the service. You may want to set up one Notification service to have a specific configuration and then use this configuration with other instances of the Notification Service. To do this you will need to use a channel configuration object. This will enable you to configure the Notification Service once and then every time it starts it will always have the same number of channels. Each channel will also have the QoS settings that were applied to them.

The steps you need to follow in order to do this are:

1. Start the Notification Service.

2. Start the Administration Manager and bring up the Notification Service manager by right clicking on the Notification Singleton.

3. Create a channel and configure the QoS properties you want it to have.

4. Save the QoS properties.

5. Repeat this until you have as many channels as you require.

6. Go to where it says Notification Service at the top of the Notification Service Manager. Right click on this and choose save channel configuration. A dialog box will appear. Enter the name of the file you want to save the channel configuration to, this needs to be an xml file e.g. channel.xml. By default the xml file is saved in the /domains directory.

7. You now have an xml file that contains the channel configuration, you need to configure the Notification Service to use it. To do this you will need to stop and restore the Notification Service by right clicking on and choosing these options. When you restore the Notification Service do not tick the "Restore Default Properties" box.

8. You now need to right click on the Notification Service and choose add -> Java Object ->ChannelConfiguratorObject.

9. When the channelConfiguratorObject is added you will need to highlight it. Fill in the Channel Configuration URL on the General Tag. This should point to the location of the xml file and will be of the form file:///path to xml file.

10. Start the Notification Service. When it starts it should have all the channels with the QoS settings you added to those channels.

 

Saving the channel configuration to an xml file

This can also be done using the command line as follows:

 

OpenFusion v4:

run com.prismt.cos.CosNotification.tools.xml.ChannelConfigurator -save <url of xml file> <name of notification service to save the state of.>

The name of the Notification Service is the resolve name and is usually NotificationService

 

OpenFusion v3

run com.prismt.cos.CosNotification.tools.xml.ChannelConfigurator -save <url of xml file> <name of notification service to save the state of.>


#KnowledgeDocs
#OpenFusion