[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-17 Thread mikeg123
ok, I see.
so in the example from TreeCacheAOP guide

  Person joe = new Person();
  joe.setName(Joe Black); // This is base class attributes
  ArrayList lang = new ArrayList();
  lang.add(English);
  lang.add(Mandarin);
  joe.setLanguages(lang);
  // This will map the languages List automatically and swap it out 
 
 with the proxy reference.
  tree.putObject(/aop/student/joe, joe);
  ArrayList lang = joe.getLanguages(); // Note that lang is a 
proxy  reference
  lang.add(French); // This will be intercepted by the cache


  local to joe lang would not be in synch with the proxy
(local would have values: English, Mandaring and
 proxy would have values: English, Mandaring, French)? (which might be 
a little wacky)

   but what about if setLanguages method was defined as prepare  
   for interception, so if I called something like
   joe.setLanguages(Spanish),
   would it intercept and update the proxy copy as well and not the local?

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-17 Thread [EMAIL PROTECTED]
Yes, it would update the proxy copy because TreeCacheAop has swapped out the 
local copy with the proxy one.

-Ben

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-16 Thread [EMAIL PROTECTED]
No, because we can't instrument the local version so anything you do on the 
local version is not intercepted. However, the other way can be true though 
provided we keep the original reference. But keeping the original reference may 
not be strightforward.  That is, in this case, we will have a local Map, a 
proxy map, and also indexed value from cache.

It can be done but I have to think about it. Here is the Jira:
http://jira.jboss.com/jira/browse/JBCACHE-354




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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-15 Thread mikeg123
Hello,
I actually do use proxy for most of the operation, except in some cases I have 
to iterate over the map values and the proxy version is not clonable. of course 
I could copy values from proxy to local, clone, iterate and then synch again, 
but it seems a litte counter intuative because as I understand if you put an 
instance of a class that references a map into cache then I can directly 
manipulate the map itself and both local and proxy copy would be synched, 
correct?

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-14 Thread [EMAIL PROTECTED]
OK, by using the proxy, we are not updating the original reference now. So my 
question is: can you just simply replace localSessionMap with proxySessionMap?

Otherwise, we will need to open a Jira issue that needs to be fixed in the next 
release.

-Ben

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-11 Thread mikeg123
Hi,
yes, AOP works fine for other stuff under 3.2.6 
 jboss-aop_1.1.2
 JBossCache-1.2.4

 but in my case I'm not defining anything in jboss-aop.xml for the caching 
stuff because I'm adding Map directly to the cache (see previous post)





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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: JBossCacheAOP synchronization of local variables

2005-11-10 Thread [EMAIL PROTECTED]
1. Have you got JBoss Aop to work under 3.2.6?

2. What version of JBossCache you are using?

-Ben

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user