[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Share a spring bean on the cluster  XML
Forum Index -> Terracotta for Spring
Author Message


Joined: 05/03/2012 00:58:42
Messages: 1


I'm working on a spring projet and I would like to put a resource on a cluster.
Now, I have a class called "MapLocker" who allowed my user to lock a map to edit it.
MapLocker class has a field like the following where the key of the HashMap is the primary key a map.
private Map<Integer,LockerVO> maps;

For the moment, I'm working in a single JVM and several synchronized method allows unique read and write on attribut maps :

Now, I would like to share this bean to allow several JVM to read and write datas in a unique attribute "maps".

1. First, is it something possible with Terracotta ? I'm not so sure
2. Which steps should I follow please ?
3. Is such a cluster can be done on Amazon cloud ?

Hope that you will understand my questions. Thanks very much for your help,


Joined: 01/23/2011 10:58:07
Messages: 489

1. Your usecase seems straightforward. Yes, you can use terracotta. Why do you say that you are not sure?
2. For ehcache start here http://ehcache.org/documentation. You can use explicit locks to allow for unique access to read and write threads
3. Yes - As Terracotta uses TCP (no multicast or unicast), its cloud ready as well.

Karthik Lalithraj (Terracotta)


Joined: 02/20/2014 06:11:18
Messages: 2

I just downloaded BigMemory Max-4.1.1 , and wanted to use it to implement scenario one from this post. how do I go about doing that. Thanks for the replies in advance, greatly appreciated.
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team