AS42x-JBossCache2xCompatibility

This page presents the test made to check how JBossCache 2.x runs within AS4.2.x

N.B. AS4.2.x relies on JBossCache 1.4.x for clustering. The test does NOT refer to upgrading the library within AS4.2 distribution, but the newer binaries within applications deployed on 4.2.x configuration.

 

All the tests made passed. Following configurations were tested(web application is the application instantiating a JBossCache 2.x):

  1. Web application deployed on a single server, started in clustered mode(jboss -c all). The server was the only member in the cluster.

  2. Web application (non distributable) deployed the two nodes of the clustered server

  3. The web applications deployed twice (different app context) on the single node of the server (started in clustered mode)

  4. The web application, this time distributable, deployed on the two nodes of a clustered server.

 

What test does?

  • in a jsp create a cache instance configured with replSync-service.xml

  • store the instance in the servlet context, so that it does not get replicated if the application is marked as distributable.

  • add an int to the cache, which is incremented on each new access to the page

  • verify the following: the increments are propagated through the cluster correctly and there were no class loading conflicts.

 

This test is not intended to be exhaustive. If you are doing any additional tests or find any issues please update this wiki. For convenience, here is the web application used for the previous tests.

 

Also see JBoss Cache 2.x (and 3.x) and JBoss AS 4.x