On Fri, Jul 24, 2009 at 12:22 PM, Phillip B wrote:
> So I guess I spent all this time trying to get something to work that isn't
> meant to be used in production or anywhere else for that matter. Well that is
> just great. I'm trying to make ColdFusion important to the company so they
> don't scrap it and go to .Net or some crappy IBM product. Guess thats not
> going to happen using the directory watcher gateway.
Be aware that is only true of the example gateways provided in source
form - and that's why the source is provided! It's open source for a
reason:
Some people have enhanced the directory watcher to be more robust. The
problem with the directory watcher (and this is the only problem I'm
actually aware of) is that if you have large files being written to
the watched directory, such that the file may be incomplete (still
being written to) when the cycle time triggers on the watcher, you'll
be told a file is added but can't tell whether it is complete or not.
Essentially you have to compensate by getting the file size of new
files and then on the next cycle see whether the file size is still
the same (in which case you can assume it is complete).
FWIW, some of the example gateways are extremely robust (both the
original JMS gateway in CFMX7 and the enhanced JMS gateway (ActiveMQ)
in CF8 have been heavily battle-tested in production). I would stand
by both of those gateways even tho' they are "only" examples (since I
wrote them and I've used them heavily in production!).
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4