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

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.
LVL 3
pulupulAsked:
Who is Participating?
 
TimYatesConnect With a Mentor Commented:
I would probably use RMI, or Serialize java objects over a socket to and from the server...
0
 
JohnnyAffaCommented:
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
 
pulupulAuthor Commented:
Only administrator can run the GUI.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
girionisCommented:
Hi pulupul,

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

Cheers!
0
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
>>  I've also read a bit about RMI, but I'm not sure if it's a good alternative.

It is.
0
 
pulupulAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.