Solved

Servlet load three webSphere application server

Posted on 2012-04-03
4
419 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java.util.concurrent.Callable way of creating threads 2 112
Encrypt the Oracle database 5 77
java environment settings, edit via *.properties file? 3 90
BIG IP GTM upgrade 2 171
-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 …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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