Solved

Using RMI with HTTP

Posted on 1998-08-31
2
162 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
Comment Utility
if not, anyone have any better  solutions?


0
 
LVL 8

Accepted Solution

by:
diakov earned 10 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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 …

743 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

13 Experts available now in Live!

Get 1:1 Help Now