Solved

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

Posted on 2004-08-19
6
184 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now