Solved

Using RMI with HTTP

Posted on 1998-08-31
2
165 Views
Last Modified: 2013-11-24
I am trying to develop a whiteboard applet that will communicate with HTTP.  is RMI a good solution to this?

0
Comment
Question by:callapm
2 Comments
 

Author Comment

by:callapm
ID: 1223065
if not, anyone have any better  solutions?


0
 
LVL 8

Accepted Solution

by:
diakov earned 10 total points
ID: 1223066
Hi 'callapm',

As far as I remember, JavaRMI supports HTTP tunneling for its communications. But it is not very elegant, since the callback mechanism is not working (or is emulated with very slow effeciency).
I believe that the best solution for what yoy want to accomplish is a CGI web server program, and an client applet that connects to it. You have to develop a simple messaging system over the HTTP using CGI calls.
Since HTTP does not support callbacks (the server cannot make a unrequested call to the client), the clients have to regularly check by a call whether there are new messages for them on the server. Basically, for this you need three routines on the server. CONNECT - returns and ID to the applet, SEND - sends a message and ID, and RECEIVE - get as a parameter unique ID and return the pending messages for this user. Over such a messaging system you can build a content synchronization messaging protocol for your whiteboard.

The CGI program could be written on some scripting language or as a Java Servlet, or in C, depends on your knowledge and on the Web server software. May be full Java solution is a good idea.

Hope this will help.

Cheers,
  Nik
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

730 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