Adding a Railo event gateway with <cfadmin>

Since I just figured it out, I thought it might be helpfull to others too:

<cfadmin action="updateGatewayEntry" type="server" password="server-admin-password"
startupMode="automatic"
id="name-of-the-event-gateway"
class=""
cfcpath="railo.extension.gateway.DirectoryWatcher"
listenerCfcPath="path.to.your.DirectoryListener"
custom='#{
directory="/private/etc/apache2/"
, recurse=false
, interval=2000
, extensions="conf"
, changeFunction="onChange"
, addFunction="onAdd"
, deleteFunction="ondelete"
}#'
readOnly=false
/>

<!--- remove the directorylistener --->
<cfadmin action="removeGatewayEntry" type="server" password="server-admin-password"
id="name-of-the-event-gateway" />

For all other documentation regarding the Railo event gateways, please see the Railo documentation wiki.

del.icio.us Digg StumbleUpon Facebook Technorati Fav reddit Google Bookmarks
| Viewed 4498 times
  1. Rodion Bykov

    #1 by Rodion Bykov - October 12, 2010 at 7:07 PM

    Hello,

    are there any other event gateways to work in Railo ? I'd like to use messaging with Flex application in front and Railo CFC on server side.

    Thanks !
  2. Paul Klinkenberg

    #2 by Paul Klinkenberg - October 12, 2010 at 8:16 PM

    Hi Rodion, at the moment there are 2 gateways pre-installed: a directorywatcher and a mail watcher. But since these are made in cfml, you can easily add your own as well.
    For flex, you can use Railo, as it has support for all the blazeDS functionality, like in Adobe Coldfusion (/flashservices/gateway and /flex2gateway). So you can call any cfc from flex by using remoting.
    Hope it helps, kind regards, Paul
(will not be published)
Leave this field empty

removed-superheterodyne