By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,750 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,750 IT Pros & Developers. It's quick & easy.

May Cluster Execute BAT file to Start/Stop Java Program

P: n/a
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.
Mar 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
-------------------------------
"Kenny" <Ke***@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
>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.

Apr 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.