• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Starting a direct Action when a file is put into the file system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting a direct Action when a file is put into the file system


  • Subject: Re: Starting a direct Action when a file is put into the file system
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 8 Mar 2006 08:29:40 -0500

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@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Starting a direct Action when a file is put into the file system
      • From: Arturo Perez <email@hidden>
References: 
 >Starting a direct Action when a file is put into the file system (From: Ute Hoffmann <email@hidden>)

  • Prev by Date: Re: How to removing instance number from target namespace
  • Next by Date: Re: java.lang.outofmemory
  • Previous by thread: Starting a direct Action when a file is put into the file system
  • Next by thread: Re: Starting a direct Action when a file is put into the file system
  • Index(es):
    • Date
    • Thread