This content has been marked as final.
Show 4 replies
-
1. Re: Clustering without J2EE App Server?
jim_cross Jul 20, 2006 10:29 AM (in response to jim_cross)...or alternatively, can Tomcat be used to provide clustering?
-
2. Re: Clustering without J2EE App Server?
brian.stansberry Jul 20, 2006 10:30 AM (in response to jim_cross)JBoss Cache can function and cluster just fine outside of an app server. An example of how to start one programatically:
TreeCache tree=new TreeCache(); PropertyConfigurator config=new PropertyConfigurator(); config.configure(tree, "replAsync-service.xml"); // read in config file from classpath tree.createService(); tree.startService();
All caches on the network which share a common JGroups protocol stack definition in their config file will see each other and cluster. -
3. Re: Clustering without J2EE App Server?
jim_cross Jul 20, 2006 10:32 AM (in response to jim_cross)Great, thanks Brian.
Also just found an example deployment in Tomcat :) -
4. Re: Clustering without J2EE App Server?
brian.stansberry Jul 20, 2006 10:33 AM (in response to jim_cross)You can't use the cluster communication layer that comes with Tomcat to provide communication between JBoss Cache instances.
But, you can run JBoss Cache inside Tomcat; the code I just posted will work fine inside a web tier component running in Tomcat.