Note: I'm using Fuse ESB 7.1 but i believe the problem described below can be solved very similar in JBOSS ESB too, so i also ask for a solution in this forum (duplicated here).
i need to implement a custom file-based lock mechanism where i'm not sure if it is already supported by the file2 EIP Component. It presumes that for each file the existence of one process that reads from the file and one process that writes to the file. The following examples shortly explain the desired behaviour of the Reader- and the Writer-Process (access to file "CAMLAB.XML"):
My question is: What would be the preferred "fuse-ESB-way" to implemented such a behaviour? Would file2 be able to support these requirements? If not, is it possible (and would it make sense) to extend the file2 EIP component to fulfill the requirements above or would i have to write my own new EIP component?
I would prefer to reuse as much as possible of file2 in such a case...
Thanks in advance for any kind of help,