Solved

Lauch a GUI remotely using Java and later kill it

Posted on 2003-11-06
4
301 Views
Last Modified: 2006-11-17
Hi
All
I need to launch a GUI remotely on another machine.
I am working on Java on Windows to obtain this.This should also be complaint with windows operation system also.
Also I need to kill the gui launched remotely to the same machine some time later.
  Can you some body help me with this.
Regards,
Naps
0
Comment
Question by:napsok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Accepted Solution

by:
mvoelker earned 35 total points
ID: 9700729
That's kinda tricky, especially under windows and java, since there is no "standard" or "native" way to do it.

Say you have machines A and B with A invoking the GUI on B. One way to accomplish this would be to have a non-gui process (jave program) running on machine B that listens for a network connection on some port (or use RMI). When A connects over the network to that process on machine B (and probably sends a specific command string or whatever), the process on machine B would that start the GUI. To stop/hide the GUI, you would simply send a different command string to the process on machine B. This whole method is incredibly insecure, but that's a different topic.

You'll have to think about some general points though: what happens if there is no user logged into machine B? Which user-ID/privileges should the gui application have? How secure does the solution have to be?

Regards,

 - michael
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 9712699
Yeah, like Michael said, you need two programs - one client and one server. The client will run the GUI part and the server will accept connections (use a ServerSocket for this). For navigating across the GUI, you will need to issue commands and exchange messages between the two programs. You can make the server program multithreaded, so that it starts a new thread for every client.

Hope that helps!

Mayank.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with my python script 6 178
withoutString  challenge 40 222
equalIsNot  challenge 43 183
map interface methods 3 81
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question