From my experience, one quite easy way is to have an activity assigned
to this tool. in parallel of Shark you run your file watching tool. When
it finds a new file, it connects to shark and terminate the activity
(eventually changing it's datas) so the process can go on. That way you
don't keep for a possible long time a shark transaction and shark
ressource that can prevent other activities in same process from
advancing further.
En l'instant précis du 29/06/2009 20:17, Vojtech Huser s'exprimait en
ces termes:
> Hi,
>
> We have one architecture question:
>
>
>
> The situation is that we have a running engine all the time and
> several processes in it running.
>
> 1.
> Some of those processes need to "sleep" and wait until external event happens.
> e.g., a new file appears on the server in certain directory.
>
> We were hoping the authors would give us a hint on what is the best
> way to do this ?
>
> Currently, we have a FindFileRepeated.class in Java which looks for a
> file and sleeps for 10 seconds if the file is not found. We are
> running into some issues with this approach, and were wondering what
> is the preferred method to wait for an external event in the middle of
> a process.
>
>
> Vojtech and Luke
>
--
David Delbecq
ICT
Institut Royal Météorologique
Ext:557
--
You receive this message as a subscriber of the
shark@... mailing list.
To unsubscribe: mailto:
shark-unsubscribe@...
For general help: mailto:
sympa@...?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws