Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clustering !!

 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We have a java program which gets invoked through a servlet when the application starts up.
When we cluster the Websphere Appln., server do we have to make some code changes for this program to run on multiple JVM's.
Any help would be highly appreciated
Thanks & Regards,
Nijeesh.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does your servlet invoke it? How does it communicate with it? Does it use RMI or some other mechanism like sockets? Is this an actual PROGRAM (running in its own JVM) or is it just a set of Java classes you use?
Kyle
 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle,
It is actually a set of java classes which get invoked during server startup.
As of now, since the application is not clustered it runs on a single JVM.
[ January 08, 2003: Message edited by: Nijeesh BH ]
 
imran anwar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When we cluster the Websphere Appln., server do we have to make some code changes for this program to run on multiple JVM's.

are you saying that the set of java classes need to start on all instances in the cluster?
 
Rob Misek
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nijeesh,
There are a few considerations when moving to clustering:
- if you are using a DB as the baskend to your app you will have change the <db-is-shared> value to false since each node in your cluster will now be accessing the same DB.
- if you have a caching mechanism in your single JVM app then you will have modify your approach so that the data can be shared (cached) across the cluster. If this is a consideration that applies to you check out Tangosol's Coherence Clustered Caching Software.
Later.

Check out Tangosol
 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the java classes are like scheduler programs which should not be started in all the cluster instances.
One of my developer over here recommends to write them as custom service. I'm not sure if that is the only way or the right way to do it.
Let me know if you have some suggestions.
[ January 10, 2003: Message edited by: Nijeesh BH ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic