Client-Server ( Client starting server remotely )

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ian maclure

    Client-Server ( Client starting server remotely )


    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 <><><><><><><>< >

  • ian maclure

    #2
    Re: Client-Server ( Client starting server remotely )

    On Fri, 14 Nov 2003 18:01:44 +0000, ian maclure wrote:
    [color=blue]
    >
    > 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.[/color]

    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.getRunt ime();
    rt.exec( "command string" );

    So theoretically at least, I can:

    rt.exec( "ssh acct@some.domai n.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 <><><><><><><>< >

    Comment

    Working...