Solved

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

Posted on 2004-08-19
6
183 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
triangle challenge 4 77
changePi Challenge 15 76
network + 7 73
count11 challenge 6 47
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

758 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

18 Experts available now in Live!

Get 1:1 Help Now