We had a similar requirement (though with nested subfolders). If you just have a flat folder to watch (i.e. not subfolders), on OS X you can use KQueue's to notify you (you can do it with subfolders too, but it's harder, and I'm not sure of the performance implications as the # of subfolders increases) and open a connection to your direct action when you receive a kqueue event. I never ended up using it, but JNIWrapper (http://www.jniwrapper.com/) provides a java wrapper around this behavior (kqueue on OS X, the equivalent on Windows) in their FileSystemWatcher clas -- can't vouch for it personally, though.

ms

On Mar 8, 2006, at 7:26 AM, Ute Hoffmann wrote:

Hi,
I was told this is "easy" and will work, because the file system is capable of this:

Someone puts a file into a folder of the webserver.

This "putting a new File into the folder" triggers a action of the woapp (how ever), probably a direct action, to read in this file into a database (a textFile). So in place of a WOTimer or Timer the file system notifies the App when a new file is there and the app then starts the process it is supposed to do with the file.

Is this possible at all? If yes, how? Is it advisable if possible? Can one define it such that only specific files would trigger the action?

Thanks for some comments.

Regards,

Ute



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to