Configure FTP Pollers
The Newsroom plug-in imports content items from iNEWS via an FTP server maintained by the iNEWS server. Stories are published on this server as XML files. The stories are organized in a folder structure that reflects the iNEWS queue structure.
In order to import stories from iNEWS you must:
Get all the information you need to be able to log in to the iNEWS FTP server (host name, user name and password)
Decide which iNEWS queues you want to import stories from
Configure a poller object to poll the relevant folders on the FTP server. The poller will then monitor these folders for changes and when a change occurs, download all new or changed files and use them to create or update corresponding content items in a particular publication.
To configure an FTP poller:
Decide on a name for your poller (for example
MyINewsPoller
)Create a configuration file for your poller by copying
/opt/escenic/engine/plugins/newsroom/misc/siteconfig/com/escenic/newsroom/ExamplePoller.properties
to your common configuration layer. For example:$
mkdir -p /etc/escenic/engine/common/com/escenic/newsroom/$
cp /opt/escenic/engine/plugins/newsroom/misc/siteconfig/com/escenic/newsroom/ExamplePoller.properties \ /etc/escenic/engine/common/com/escenic/newsroom/MyINewsPoller.properties
Open your configuration file for editing and add the required information (see Editing the Configuration File).
Open configuration-root
/Initial.properties
for editing and add a service entry for your poller, for example:service.1.00-inews-poller=/com/escenic/newsroom/MyINewsPoller
Restart the Content Engine.
Start a browser and go to
http://
host-name/escenic-admin/do/services/display
to verify that theMyINewsPoller
is running. If the service is not correctly configured you will see an error message describing the problem.
An iNEWS FTP poller imports stories to one section of one publication only. If you want to import iNEWS stories to several publications or to several sections of a publication, then you must configure one poller for each publication/section combination.