473,322 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

May Cluster Execute BAT file to Start/Stop Java Program

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
1 3549
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: BlackHawke | last post by:
Our program, game program Andromeda Online (www.andromedaonline.net) uses two programs- one to play the game, another to patch the game as updates come out. Players actually launch the updater...
4
by: Tom | last post by:
Hi, I wrote a java console program. But, I am not familiar with Swing to write the GUI. I want to use C# to write the GUI, e.g. a start and a stop buttons. When I click the start button, it...
17
by: Peter Ericsson | last post by:
Does anyone know if Microsoft plans to implement an C# (.net) API for MS Cluster like the one in C++? Or has someone else written a C# wrapper for the C++ API?
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
4
by: ThunderMusic | last post by:
Hi, We have many servers setup as a cluster. When one server crashes, another one take the relay... We want to know if it's possible (I suppose it is) to make a Windows service developed with .NET...
3
by: Simon | last post by:
Hi All, I'm hoping someone will have some words of wisdom for me regarding MS Clustering on Windows 2003. I have a service that runs on a cluster. During invocation it's supposed to...
3
by: Bruno LIVERNAIS | last post by:
Hi, We are currently installing a DB2 V9 ESE on a Linux server (RHEL4U4-x86_64). Installation runs successfully on each node. Database user environment is OK and the instance is well created. To...
7
by: swethak | last post by:
Hi, i have a command to convert the video file into image ffmpeg -i sample.wmv -f image2 -t 0.001 -ss 3 ss.jpg i run that one in command prompt it converted the video file into...
5
by: sayeo87 | last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got: <%@...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.