wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Clustering in JBOSS?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Clustering in JBOSS??" Watch "Clustering in JBOSS??" New topic
Author

Clustering in JBOSS??

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
How can i achieve clustering in JBOSS3.x.
Is there any article/tutorial for the same?
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
You can try and get ahold of the JBoss documentation and read it. Basically, clustering in JBoss is pretty simple. Just run the server on "all", and deploy your apps in the "farm" directory somewhere in there and it takes care of everything. (This is a brief version of course. Find out the details by a good googling or something similar.)


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
James Adams
Ranch Hand

Joined: Sep 12, 2003
Posts: 188
I too am wondering about how clustering in JBoss 3.2.x is done. I have looked at the Clustering documentation and it is not straightforward (at least for a beginner like me after just one reading), unless it really is as simple as just modiying a few .xml files. Where do you tell it how many partitions/nodes ? Does it just go by what's in cluster-servce.xml and jboss-xml files ? How do you get HTTP session replication in JBoss with Apache/Tomcat -- do you modify any JBoss config files or is it necessary to modify mod_jk (I thought JBoss was running its own integrated Tomcat, and if so shouldn't I modify something like jbossweb-tomcat*.sar/META-INF/jboss-service.xml). I don't have the Clustering docs in front of me but from what I remember they don't give a 1-2-3 tutorial on what steps should be taken to get simple clustering set up. Once I get it working I may post a recipe which works for me.

If anyone can comment on the below I will certainly appreciate your ideas:

How can one make sure that a singleton is shared among all nodes in a cluster, in order to maintain a true single copy of application data ? How can I do the same for a singleton Message-Driven Bean ?

Thanks in advance.


-James
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clustering in JBOSS??