Re: WTF? Re: Anyone here good with Event Gateways?

2009-07-24 Thread Sean Corfield

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


WTF? Re: Anyone here good with Event Gateways?

2009-07-24 Thread Phillip B

I just found this.
http://forums.adobe.com/message/60801#60801
"Well, the directory watcher is supplied as an *example* and is not
really intended to be production-quality code. The source is supplied
so you are free to modify it yourself as needed.

-- 
Sean A Corfield "

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. 

Phil


~|
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:324953
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Anyone here good with Event Gateways?

2009-07-24 Thread Phillip B

I'm having issues with a directory watcher event gateway. I just tried 
uploading 10 files to a server via FTP. The first and the last file were 
noticed and handled. The 2-9 files were ignored. 

Any idea why and how I should handle this? I have the interval set to 500. 
Should I try a longer amount of time? 

Thanks

Phil 

~|
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:324944
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4