File Event Pattern 2006-07-08 - By Carlos Arturo Quiroga
Back We made a similar solution; we have a service that administers the instances off file path manager, because we need to review more that one path at the same time. We call the path manager CFileSendManager because the files have messages that need to send an EAI framework, each CFileSendManager instance one CFileFinder that is a thread that run whatever, finding files to process when find one file it Create a CFileReader that really process the file each CFileReader knows who is their own CFileSendManager because these know how put a message in the EAI Framework, the CFileReader know how process each record file to make a message with them but only make these task, don?t send the message. To avoid the reprocess of a file because the CFileFinder runs again the next time and find a file that not finish to process, the first task that make the CFileFinder is move the file to a path where it can process the file. Additional the CFileFinder has a wait time between each search cycle.
I hope its help you
Carlos Arturo Quiroga
===================================================================Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|