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
Solved

How to communicate user interface with app core over a network.

Posted on 2004-08-19
6
189 Views
Last Modified: 2011-09-20
I'm going to write a server in Java. I have not started writing it, I'm still designing it. The server will run in one computer, and will have a GUI (Graphical User Interface). I want to let the user execute the GUI in any computer in the network, and control the server from it. How is this achieved? I have thought about designing my own network protocol over TCP, and doing all with sockets, but implementing this would be rather costly. I've also read a bit about RMI, but I'm not sure if it's a good alternative.
Thanks.
0
Comment
Question by:pulupul
6 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 300 total points
ID: 11841430
I would probably use RMI, or Serialize java objects over a socket to and from the server...
0
 
LVL 3

Expert Comment

by:JohnnyAffa
ID: 11841519
are all client connections allowed server configuration access or only some( eg admin only)?  if it is the latter, then it is relatively straight forward.  

1) create the standard client gui
2) once the server varfies the user, the client gui should modify the interface to reflect server access.  if the user is only a standard user, do nothing to the interface.
3) most of the coding would/should go into the client app

0
 
LVL 3

Author Comment

by:pulupul
ID: 11841764
Only administrator can run the GUI.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 35

Expert Comment

by:girionis
ID: 11841808
Hi pulupul,

Maybe this link will help: http://www.javaspecialists.co.za/archive/Issue091.html

Cheers!
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 200 total points
ID: 11842924
>>  I've also read a bit about RMI, but I'm not sure if it's a good alternative.

It is.
0
 
LVL 3

Author Comment

by:pulupul
ID: 11869113
I'm definitely using RMI, and maybe sometimes serialization. In addition, Java 1.5 brings some features that ease the use of RMI: you do not need to call the RMI compiler to generate stubs, and with metadata, there is a way to have remote interfaces (e.g: interface asdf extends Remote) automatically generated by using annotations in the source code.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

860 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