One more thing to add to my question...
I am using JBoss Cache version "jboss-cache-dist-1.4.1.GA".
1) Update to the latest JBoss Cache (2.0.0.ALPHA2)
2) Read the snapshot 2.0.0 user guide, especially the basic API.
Thanks for the reply.
As you have suggested, i looked under "JBossCache-1.4.1.GA\examples" folder but it contains examples only for PojoCache, i want some examples of TreeCache.
if u can suggest something then it will be of great help.
Thanks once again.
TreeCacheMBean = new TreeCache(); PropertyConfigurator config=new PropertyConfigurator(); // Configure cache from config file on the classpath // File can be named anything config.configure(tree, "mycache-service.xml"); tree.createService(); tree.startService();