File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Clustering in WAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Clustering in WAS" Watch "Clustering in WAS" New topic

Clustering in WAS

Shrawan Bhageria
Ranch Hand

Joined: Jun 20, 2005
Posts: 52
Hi All,

Please let me know how we implement clustering in WAS.


Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Oh boy, my favorite two topics!

Well, first, there is the architecture aspect. You have to install WebSphere on multiple machines, and make those machines part of a common administrative domain, or cell. Essentially, you have a bunch of WebSPhere nodes that host applications, and those nodes are managed by one central deployment manager.

However, that's not clustering - that's just architecture.

Then, you create a cluster accorss your WebSphere nodes. Essentially, you put a JVM on each WebSphere node, and tell the deployment manager that all of those JVMs will host the same applications.

THEN, you deploy as many EAR or WAR files to the cluster, and WebSphere magically deploys the application to each JVM. At this point, each JVM can handle the requests that come in from the web client. The HTTP server gets a plugin-cfg.xml file that sprays requests randomly/round robin to each of the JVMs running on the WebSphere nodes.

You should note that at this point, you are not workload managing HttpSessions or stateful session EJBs (SFSBs). This is some extra steps that must be done through the admin console, and can be accomplished through database persistence, or in memory replication.

Anyways, it's a big question.

I have an article on my website describing WebSphere Clustering and deployment options:

I also have a mulitmedia tutorial that demonstrates how to 'federate a domain' and create a cluster of servers:

I think those will answer a heck of alot of questions for you regarding WebSphere. The multimedia tutorials use WebSphere 5 right now, but there is very little difference in thi aspect between WebSphere 5 and WebSphere 6.1. Who knows what will happen with WebSphere 7?


-Cameron McKenzie
I agree. Here's the link:
subject: Clustering in WAS
It's not a secret anymore!