LogPersister is a JMS message consumer that persists the content of the messages to a log file. It listens to the XQueue and receives JMS Messages. It appends the content of the Messages to the log file. LogPersister supports flow control and allows object control from its owner. It is fault tolerant with retry and idle options.
Apart from the common properties, there are many implementation specific properties for LogPersister.
Property Name | Data Type | Requirement | Description | Examples |
---|---|---|---|---|
Retry | integer | optional | number of retry before to give up the delivery | 2 |
FieldName | string | optional | field name for the full path of the logfile | (default: use the logfile in uri) |
RCField | string | optional | field name to store return code (0 for success) | (default: ReturnCode) |
Template | string | optional | template to build the request |
Here is an example of LogPersister:
{ "Name": "pstr_done", "ClassName": "org.qbroker.persister.LogPersister", "URI": "log:///var/log/qbroker/done_out", "LinkName": "done", "Operation": "append", "XAMode": "1", "Template": "##body##\n", "DisplayMask": "6", "StringProperty": { "AssetID": "", "Type": "", "status": "" } }