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

Client-Server ( Client starting server remotely )

P: n/a

I'm writing a client-server app.
Client controls Server which in turn configures and controls
a bunch of hardware.
I want to be able to start the server from my client.
Now in C/C++ one could simply run the appropriate
command string through a standard "system()" call
which is relatively simple.

JAVA on the other hand seems to require something like
RMI to do it.

Basically a use case for what I want to do is something
like:

Start Client GUI
Enter name of data file
Client checks bonafides of data file.
Client reads and parses data file building a configuration
Client gets host/port and path information for
Server app ( which may be remote ).
Client starts server.
Client starts interrogating server until a reply is
received.
Client downloads data to server.
Client and Server sort out data download issues
Client awaits further User input.

What is the Java best practice for this sort of thing.

IBM

__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 14 Nov 2003 18:01:44 +0000, ian maclure wrote:

I'm writing a client-server app.
Client controls Server which in turn configures and controls
a bunch of hardware.
I want to be able to start the server from my client.
Now in C/C++ one could simply run the appropriate
command string through a standard "system()" call
which is relatively simple.


And of course wouldn't you know it, two seconds after I hit send
the the Sun rises on Mahble Head as they say in Boston.

To whit:

static Runtime rt = Runtime.getRuntime();
rt.exec( "command string" );

So theoretically at least, I can:

rt.exec( "ssh ac**@some.domain.tbd /java/bin/java /full/path/to/app/thing" )

IBM

__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.