On 26/01/12 10:26, Alexander Klenner wrote:
> Hi there,
> 
> is there a tutorial for the problem mentioned above? We have multiple 
> instances of an AE that produce output that has to be collected in one final 
> output file (all instances are ought to share this file via e.g UIMAContext), 
> the order of the writing into this file is not important, so if CAS-A is 
> written first and CAS-B second or vice versa doesn't matter.
> 
> Thanks a lot for any hints,
> 
> Alex

There are any number of solutions to this kind of problem, and
it really depends very much on what sort of infrastructure you
have available.  A sort of low-tech solution would be to write
each CAS to a temp file (using the Java tmp file facility to make
sure each file name is unique).  Then when your processing is
done (e.g., on the batchProcessComplete() call or whatever it's
called), concatenate them into one big file.

If you have a Java Messaging infrastructure available, or don't
mind setting it up, you could use that to serialize the CASes.

Anyway, it's not really a UIMA-specific issue, right?

HTH,
Thilo

> 
> 
> 
> 
> --
> Alexander G. Klenner
> Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
> Schloss Birlinghoven, D-53754 Sankt Augustin
> Tel.: +49 - 2241 - 14 - 2736
> E-mail: [email protected]
> Internet: http://www.scai.fraunhofer.de
> 
> 

Reply via email to