Ben and Brian,

First off, I'm sorry for the typo in my previous response.  When running my 
assertEquals() tests, I was actually running it on the re-retrieved POJO 
objects (cachedPojoA, updatedPojoA, and updatedPojoB).  Thank you for catching 
that typo. :)

Good to know that doing a putObject() from both nodes isn't supported.  That 
explains part of the problem I'm seeing, but unfortunately not all.  If I 
follow the regular usage pattern, as you described:

cacheA.putObject("/test", pojoA); // pojo attached on cache A
  | 
  | pojoA1 = cacheB.getObject("/test");
  | 
  | pojoA.setBlah(xx); // will have problem here
  | print(pojoA1); //will get updated.

pojoA1 won't exist on cacheB (I'll get a null value in this test).  In the 
logs, I'll see the object and values coming over to CacheB, but it won't 
actually get set into CacheB.       

As for the reason I'm doing a putObject() from both nodes ... each night, the 
servers corresponding with CacheA and CacheB restart (various reasons behind 
this) in about a 30 second staggered fashion.  For this particular 'dailySpend' 
data, we need to restore it from the database on server startup (lazy loading 
isn't really an option here).  One of the two servers needs to load it from the 
database at startup, and because I'm never entire sure which one will complete 
its startup first, I'm just having them both load the data from the DB.  I'm 
also afraid to code one server to be the primary DB loader (e.g., CacheA) and 
the other to just retrieve the data across the network (e.g., CacheB) from the 
other node because, if CacheA went down permanently, I'd have no way of loading 
the data from the DB.  I'm not sure if there's a way around this (any 
suggestions would be appreciated) - I looked into your CacheLoaders, but they 
didn't seem to fit.  Perhaps I'm missing something??

Anyway, I still need figure out why replicated values aren't getting persisted 
on the various nodes. :)  I'm going to try JBoss Cache 1.4 and see if that give 
me any different results.  Could this be a configuration issue??

Thanks,
Michael

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954127#3954127

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954127

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to