Good question. I do not think there are too many options due to the amount of time it would take cf to process the files. Off the top of my head, I am thinking maybe executing an attrib /r command to mark them all read only, preventing another thread from moving them.
Dan -----Original Message----- From: Vernaillen Tim [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 10:29 AM To: CF-Talk Subject: RE: Need to write Dispatcher! Jeremy Thanks a lot already. I knew that i could use the scheduler of cfadministrator. But what in the following scenario: i'm running the task, 50000 files are in the directory, the following minute the process restart (another instance), a lot of those 50000 will be still in the directory. how can i guarantee that the files will be handled just onces? thanks for the ideas cheers Tim -----Original Message----- From: Jeremy Brodie [mailto:[EMAIL PROTECTED] Sent: dinsdag 19 augustus 2003 16:15 To: CF-Talk Subject: Need to write Dispatcher! Tim, >Is this all possible with Coldfusion? Sure, if we're talking about moving and renaming files. >How to poll continous a directory or at least every 1 minute? You might want to explore the cold fusion scheduler. Additionally CFFILE also contains the ability to read the contents of a directory. The scheduler could be set to run the job every minute-- and if there is an error, you could always use CFMAIL for a quick notification. As an additional feature, you could log the sucesses of the job in the scheduled jobs log in CF administrator. >How to give uniqueID-filename? How about a formated date created using the dateformat function. Here you can rename the image file (using CFFILE) with a unique file created by using the date. Others on the list may have other ideas for using other unique identifyers such as CFID/CFTOKEN or even server variables located in RAM. This dispatcher has to be also on a fail-over >site and when the main side failes, the dispatcher on fail-over site >needs to take over, and go on with the whole process (may be a manuel >operation). Input directory's and buffers are protected via >SRDF-copies, powered on a EMC Symmetrix system, so when the system >fails-over, those copies of the directory's (without losing data) can >be used! Using CF over J2EE (such as TomCat or JRUN as the J2EE engine) you can use multiple instances on seperate machines. MM has a pretty good article on building and clustering Cold Fusion in this setting. Others on the list may be able to help you with hardware based load balancing such as Cisco Local Director. See: http://www.macromedia.com/devnet/mx/coldfusion/articles/multiple_61.html for additional help. >Anyone has any proposals how to do or to start at this? There are a lot of folks chomping at the bit who would like opportunity to work on this project. You might want to set up a sign in sheet and write a short RFP for those that are intrested in the work. Hopefully, these ideas give you some food for thought for building this job. Knowing the qulaity of the other folks on the list, they can fill in the gaps that I've missed. Jeremy Brodie Intelix an Edgewater Technology Solutions Company web: http://www.edgewater.com phone:(703) 815-2500 nasdaq symbol: EDGE >Hello > >I need to write a dispatcher that polls (continue, every 1 minute or >???) a directory. >In this directory, there's always an image and an index file. >I need to take those two, give them both a uniqueID-filename (???) and >place them in two buffers with the same uniqueID-filename. We're >talking about 150000 images/day! > > >Little more complex! This dispatcher has to be also on a fail-over >site and when the main side failes, the dispatcher on fail-over site >needs to take over, and go on with the whole process (may be a manuel >operation). Input directory's and buffers are protected via >SRDF-copies, powered on a EMC Symmetrix system, so when the system >fails-over, those copies of the directory's (without losing data) can >be used! > >Kind regards, hoping someone has a solution on this. > >Tim > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

