Hi there,

I'm thinking about using Mina for an application which will give clients read/write access to a single data structure containing a map of objects which change over time. The clients will need to be able to say "give me list of objects at location X", "put object X at location Y", etc.

The very basic idea is to have a singleton map object with which clients communicate. Obviously the data this object managed needs not to be corrupted, deadlocked or stuck in race conditions. In a threaded version, I'd start to think about synchronization, but I'm not sure of the correct approach using Mina.

Does anybody have any pointers, or Is there some documentation as to how to manage the concurrent access to this structure within Mina? Or perhaps suggestions for better ways to do it in this context?

Many thanks,
Igor

Reply via email to