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
Solved

Servlet load three webSphere application server

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do you get SOAP Header in Library call 4 123
can intune do all these? 1 87
Does Glassfish could complete substitute Tomcat ? 1 189
Protect jar file - windows app 2 65
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…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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