mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Webb" <elihusma...@gmail.com>
Subject Re: Singletons, data access and safety in Mina
Date Fri, 11 Apr 2008 12:41:51 GMT
I would suggest you take full advantage of the java.util.concurrency data
structures and if you have not done so already, pick up a copy of "Java
Concurrency in Practice".  Its a fantastic book.


On Thu, Apr 10, 2008 at 11:57 AM, Igor Clark <igor@pokelondon.com> wrote:

> 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

Talent hits a target no one else can hit; Genius hits a target no one else
can see.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message