Version 12 (modified by bartek, 13 years ago) (diff) |
---|
and set up a table structure using the command:
$ createdb qcg-ntf
and set up a table structure using the
qcg-ntf-psql.sql
file from QCG
Notification distribution - it can be found in
/opt/qcg/share/tools
directory by default.
$ psql -d qcg-ntf -U qcg-ntf < qcg-ntf-psql.sql
Eventually you need to add this database as the ODBC D ata Source Name. You can do this by editing system-wide configuration file (e.g. [string]
URL of the SMTP server. Mandatory element.
//smn:User [string]
Name of the account on SMTP server. Optional element.
//smn:Password [string]
The secret key for the account. Optional element.
//smn:Encryption [string]
Used to enable encryption. The only supported type of encryption is "TLS". Optional element, if not present, encryption will be switched off.
//smn:TrutedCAFile [string]
A path to the file with trusted CAs certificates. Optional element.
//smn:TrutedCAPath [string]
A path to the directory with the files with trusted CAs certificates. Optional element.
//smn:From [string]
Defines a name that will be placed in From field of the e-mail message. Optional element. Default is "QCG-Notification".
//smn:Subject [string]
Defines a Subject of the e-mail message. Optional element. Default is "QCG-Notification message".
//smn:Trace [boolean]
Switches trace logging. Optional element, default is false.
//smn:SendTimeout [int]
The timeout in seconds for stall on the send function. Optional element, default is 10.
In the current release, a topics management in QCG Notification is relatively simple. The first step is a preparation of an XML document with a Topic Namespace definition. This step can be done by one of the peers cooperating with QCG Notification. Then the document should be delivered to the computer where QCG Notification is installed. It can be done in two ways: the document may be copied manually by QCG Notification administrator to TopicNamespaces directory in prior to a QCG Notification startup or it can be send through the QCG Notification interface when QCG Notification is already runing. In the last case, the TopicNamespaces are stored also in a files in TopicNamespace directory so they can be automatically loaded after restart of the service. The TopicNamespaces loaded from files may be protected from unwanted removal by unseting write permissions for a certain file.
An XML document describing a sample topic namespace is presented in the Section 3.3.
To start QCG Notification as a daemon type:
$ ./qcg-ntfd
If you start QCG Notification with parameter -h you will get an optional parameters list:
$ ./qcg-ntfd -h usage: ./qcg-ntfd [-d] [-z config_file] -d do not detach and log to stderr -D do not detach and force logging at debug level to stderr -z config_file configuration file, default is /opt/qcg/etc/qcg-ntfd.xml -v print version information -h print this help
Once you run QCG Notification as a daemon, a log file is created. Using various log levels, you can log less or more details.
Attachments
-
smn_baseentities.png
(53.6 KB) - added by bartek 13 years ago.
-
smn_brokeredentities.png
(65.4 KB) - added by bartek 13 years ago.
-
smn_topicnamespace.png
(58.9 KB) - added by bartek 13 years ago.
-
smn_example1.png
(62.9 KB) - added by bartek 13 years ago.
-
smn_example2.png
(45.5 KB) - added by bartek 13 years ago.
-
seq_consumer.png
(26.4 KB) - added by bartek 13 years ago.
-
seq_publisher.png
(44.9 KB) - added by bartek 13 years ago.
-
seq_pullpoint.png
(12.4 KB) - added by bartek 13 years ago.
-
seq_subscriber.png
(46.1 KB) - added by bartek 13 years ago.
-
use_administrator.png
(12.3 KB) - added by bartek 13 years ago.
-
use_consumer.png
(6.2 KB) - added by bartek 13 years ago.
-
use_publisher.png
(10.3 KB) - added by bartek 13 years ago.
-
use_qcgnotification.png
(3.5 KB) - added by bartek 13 years ago.
-
use_subscriber.png
(13.7 KB) - added by bartek 13 years ago.
-
seq_all.png
(40.9 KB) - added by bartek 13 years ago.