May Cluster Execute BAT file to Start/Stop Java Program

G

Guest

I have one bat file that contains a command to startup Java Program. Then, I
would like to create a cluster job to call the bat file. In case of one
computer is down, another computer can also call the bat file and startup my
Java Program.

For this purpose, I have tried to place the bat file into share drive of two
computers which are cluster machine. Also, I used Generic Application to
create a job to call my bat file and this job is set with depending of that
share drive. But, two problems was happening when I turned on the cluster job
to online mode.

Problems:
1. When I turned on the job to online mode, the Java program was workable as
log file can be created by the Java program. However, I didn't know why the
log file was still continously printing information when I turned off the
cluster job to be offline mode. It seems the cluster job could not stop the
Java program.So, could anyone explained me how to set a cluster job to call
that bat file in order to startup and stop my Java program?

2. My Java program was required to get external file from a network drive.
However, when I used the cluster job to startup that Java program. The log
created by Java program showed that it could not connect to the network drive
such as X drive. But I sured that I had mapped the drive alreadly before
startup the cluster job.

Configuration
Windows Cluster 2000

PS: When I startup the Java program from the bat file stand alone, all thing
is workable including startup and stop the program and connecting to network
drive. Thanks a lot.
 
R

RobinS

This is a .Net Programming newsgroup. If your questino has something to do
with .Net, please post some code and be more specific. Otherwise, please
find a more relevant forum.

Robin S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top