REQUIREMENT contrib.filewriter |
Type | NEW |
Priority | HIGH |
Status | CLOSED |
Topic | You can receive messages published by the filewatcher and store them at a certain location on the filesystem. | ||||||||||||||||||||||||||||||||||||||||||||||||
Des cription |
This can either be run as a java plugin running locally on the server, or a c++ standalone application. For the standalone application this is to be found under the demos as FileWriterApp. The configuration parameters are the same for both solutions. |
||||||||||||||||||||||||||||||||||||||||||||||||
Example any |
Invoke the c++ Client You can easlily invoke the c++ client by going to the demo/bin Directory (or pointing the classpath to it) and invoke: FileWriterApp -propertyFile xmlBlaster.properties |
||||||||||||||||||||||||||||||||||||||||||||||||
Configure |
The plugin is configured in the xmlBlasterPlugins.xml configuration file. Here an example where all properties are used: <xmlBlaster> ... <plugin create='true' id='FileWriter' className='org.xmlBlaster.contrib.filewriter.FileWriter'> <attribute id='mom.administered'>true</attribute> <attribute id='mom.loginName'>writer01/1</attribute> <attribute id='mom.password'>secret</attribute> <attribute id='filewriter.directoryName'>${user.home}/writerDirName</attribute> <attribute id='filewriter.tmpDirectoryName'>${user.home}/writerDirName/tmp</attribute> <attribute id='filewriter.overwrite'>true</attribute> <attribute id='filewriter.lockExtention'>.lck</attribute> <action do='LOAD' onStartupRunlevel='7' sequence='4' onFail='resource.configuration.pluginFailed'/> <action do='STOP' onShutdownRunlevel='6' sequence='6'/> </plugin> ... </xmlBlaster>and here a more detailed description about each attribute:
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | engine.runlevel | ||||||||||||||||||||||||||||||||||||||||||||||||
See TEST | org.xmlBlaster.test.contrib.TestFileWriter |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/contrib.filewriter.xml