Solved

Servlet load three webSphere application server

Posted on 2012-04-03
4
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

690 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