Solved

Servlet load three webSphere application server

Posted on 2012-04-03
4
414 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Because of the late submission
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

-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 …
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now