[JBoss-user] [JBossCache] - Proxy Collection classes and node locking

2005-07-21 Thread yoavis
Hey.

I was wondering if anyone knows how does TreeCacheAOP manage locks for 
aspectized collection classes. 

Basically I want to put a large map on the cache, and then use the apectized 
map. I'm expecting heavy reads and non freequent write to the map. As 
performence is critical, I need the locking to be on the current key that is 
modified, and not on the whole map. Is this the case?

BTW, another question: is there any way to run over all the map elements using 
an iterator without locking the whole map?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3885936#3885936

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885936


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: HashMap get method - invocation time

2005-06-15 Thread yoavis
Hello. 

Ben/Bella/anyone...

I'm working with Yosi (yos_titi), and we kind of
being going around this subject for a while now. So just to explain
again: We want use several static maps to hold all our
cached data (We use them now locally). We thought that we could put the maps on 
the jbosscache at server startup time (See the code published above by Yosi), 
and then handle the maps as usual, allowing the mapinterceptor to do all the 
dirty work (handling changes among all nodes). The static maps will be reused 
across all transactions, where map.get() will be invoked several times for each 
user transaction (heavy loads are expected) and map.put/remove will be called 
much less frequently.

Ben - thanks for the replies. To make things clear, We don't need specifically 
cache.getObject() for each transaction. We just call map.get() several times on 
several maps for each transaction (as we are trying to use the distributed map 
as we would regular maps), and we noticed that the mapinterceptor calls 
cache.getObject(), which invokes network calls. 

The basic question is: can't we use collection classes (The new release u 
suggested / Implementing our own map) that do not go to the network on each 
object get, but rather maintain for each proxy class it's correct state locally 
(as well as being aware that a proxy object has been removed from the map in 
antoher node).

Are we missing something?

Thanks,

Yoav


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3881547#3881547

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881547


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user