Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"Wildcard support in Dynamic-imports"
To view the discussion, visit: http://community.jboss.org/message/547780#547780
--------------------------------------------------------------
> you want to update the ClassLoaderInformation - this is the optimized view of the policy for runtime.
> void addExtraDelegate(DelegateLoader dl);
Once we add new delegate loaders the caching and blacklisting setting can change.
e.g. adding non-caching delegate loader to existing all-caching delegate loaders
Does it make sense to track this and apply accordingly?
e.g. nullify cache if we add-non caching delegate loader, and restore to previous state once removed
Or should we simply ignore any caching and blacklisting if extra delegate loader is added?
I'll try to go with the tracking approach, and see how complicated it is.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547780#547780]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
Galder Zamarreno [http://community.jboss.org/people/galder.zamarreno%40jboss.com] replied to the discussion
"jboss cache as hibernate 2nd level - cluster node doesn't persist replicated data"
To view the discussion, visit: http://community.jboss.org/message/547768#547768
--------------------------------------------------------------
Unless database1 and database2 are somehow replicated, I can't see your use case working. The aim of 2LC is to act as cache of read data. It's not mean to act as primary source of data. It's only a temporary place to hold recent entites/collections/queries to avoid going to the server again. If data is evicted from the 2LC, it expects to retrieve it again from the database. But, as you can see in your case, db1 and db2 need to have data replicated between them for your use case to work.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547768#547768]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]