[jboss-user] [JBoss Cache] Document updated/added: "JBossCache200Migration"

Manik Surtani do-not-reply at jboss.com
Mon Feb 22 10:35:34 EST 2010

User development,

The document "JBossCache200Migration", was updated Feb 22, 2010
by Manik Surtani.

To view the document, visit:

This page is for users of JBoss Cache 1.x.x who wish to move to JBoss Cache 2.x.x, and talks about how things have changed, and how existing code can be migrated to the new APIs.
It is assumed that you have already read the JBoss Cache http://labs.jboss.com/jbosscache/docs/index.html.
*Q:* Where is TreeCache?
*A:* TreeCache, the central class in JBoss Cache 1.x.x, has been removed in favour of API access via a Cache interface.  This gives the implementation more flexibility, and adds further safety by restricting the API methods exposed.
*Q:* Can Nodes be directly manipulated now, and will aspects such as locking, replication and cache loading still be applied?
*A:* Yes.  JBoss Cache 1.x.x exposed Node objects but did not apply any of the JBoss Cache aspects when directy manipulating a Node.  In 2.0.0 we have promoted Node to a top-level construct and it is in fact encouraged to use Nodes directly rather than operations on Cache.
*Q:* How do I create a Cache then?
*A:* Use a CacheFactory.  JBoss Cache 2.0.0 ships with a DefaultCacheFactory implementation.  See the http://labs.jboss.com/jbosscache/docs/index.html for examples.


More information about the jboss-user mailing list