[Lucee 4.5.2] Event Gateway DirectoryWatcher

I am trying to get this setup and can do so fine if I drop the listener cfc
in the WEB-INF\components\lucee\extension\gateway folder. However, I cannot
seem to get the listener to load if placed anywhere else inside the
application. I tried creating a mapping in the web context (stored in
lucee-web.xml.cfm) but it does not appear to be recognized?

The end goal is have this gw monitor a few files for evidence of
modification and if so, then run a cache bust routine inside of a Coldbox
app and so I’d like for the listener to have access to Coldbox. However I
cannot even have it extend any components within the app if it’s stuck in
the lucee context and not respecting any mappings.

Is this possible?

Has anyone who has gotten a listener cfc to work inside an application?
There seems to be very little information out there on Event Gateways in
Lucee (or Railo for that matter)On Saturday, August 8, 2015 at 12:50:59 PM UTC-7, ADK wrote:

I am trying to get this setup and can do so fine if I drop the listener
cfc in the WEB-INF\components\lucee\extension\gateway folder. However, I
cannot seem to get the listener to load if placed anywhere else inside the
application. I tried creating a mapping in the web context (stored in
lucee-web.xml.cfm) but it does not appear to be recognized?

The end goal is have this gw monitor a few files for evidence of
modification and if so, then run a cache bust routine inside of a Coldbox
app and so I’d like for the listener to have access to Coldbox. However I
cannot even have it extend any components within the app if it’s stuck in
the lucee context and not respecting any mappings.

Is this possible?

I’ve created several gateways using the documentation on the Railo wiki:


The listener is not aware of an application. The server scope is accessible
though. Otherwise you’d have to use cfhttp to call Coldbox.