Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using RMI with HTTP

Posted on 1998-08-31
2
Medium Priority
?
176 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 20 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 …
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month20 days, 17 hours left to enroll

810 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