Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clustering in WAS

 
Shrawan Bhageria
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


Please let me know how we implement clustering in WAS.


Regards,

Shrawan
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://www.technicalfacilitation.com/get.php?link=deployment

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

http://www.technicalfacilitation.com/examscam/get.php?link=../was/tutorials

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?

Cheers!

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic