Yes, I want to write my own persistence layer, but let's say I want to do it
with 1.1, because that's last stable version.
Maybe I'll repeat problem in other words:
1) I want to cache Root object which may have some children: accessed through
'getChildren()' method.
2) I want to combine caching with lazy retrieving those data from database
using already written persistence aspect
3) I want only coordinator node to persist (retrieve, store) data.
4) I do not want to load whole data from database as the application starts,
but want to use lazy loading.
Problems occurs when application has started - no data loaded - and the first
node accessing data ('Root.getChildren()') is slave node. That's not the node
with persistence aspect applied. This node sees 0 data, because it wasn't
loaded by coordinator.
In other case, when the coordinator node access data first, it is loaded into
cache and distributed also to slave nodes. After that, slave nodes see data.
There would be no problem at all, if execution of 'Root.getChildren()' would
also trigger execution of the same method on coordinator. But this is as I
think impossible. Looking for some way of workaround for it..
Or more in generall: how to let the coordinator know that slave wants to
retrieve some data from underlying database, not from cache itself?
Hope it is enough.. hope for some tip
Tomasz
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855214#3855214
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855214
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development