Solved

Servlet load three webSphere application server

Posted on 2012-04-03
4
416 Views
Last Modified: 2012-09-01
Hi all,
I have webSphere application server which has three node related to one cluster.I have servlet which start at 2pm every day.I used Timer task.I have a problem application server.When time is 2 pm,servlet run all node.But I want to that servlet run only one node?How can I solve this problem?
0
Comment
Question by:cathcath
  • 2
4 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 37804036
The problem is that by definition, an application deployed on any cluster member, must be available on all cluster members.

One option is to have another application server that is not a cluster member on which you deploy the servlet application.

Since you have a cluster, you certainly have a web server.  Once you create the new server, federate it into the same cell, and deploy the servlet application to it, you only need to update your plugin configuration so that references to the servet will all be routed to the "new" server.
0
 
LVL 11

Expert Comment

by:anilallewar
ID: 37826333
There are 2 options that you can use.

1. instead of the timer you can use the Quartz API with which you can use the JDBC Job store to schedule clustered jobs that would start at only 1 node.

2. The 2nd option you have is using database monikors in case you are stuck using timers. Have a table in the database that stores the job name and host which started it. Each node has a job that

First wait for arbitaty number of ms and then checks if any row is available in the table
If not, it enters a synchronized block and checks whether the job is available or not
It then enters a new row in the table and starts the job
When the job finishes, it deletes the row from the database monikor table
0
 

Accepted Solution

by:
cathcath earned 0 total points
ID: 38338684
Hi,
I am sorry for late submission.But I resolved this problem.I created batch cluster on WebSphere then created batch job.It works on one cluster,one node.
0
 

Author Closing Comment

by:cathcath
ID: 38356894
Because of the late submission
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question