472,371 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 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 3478
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: <%@...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.