?
Solved

Using RMI with HTTP

Posted on 1998-08-31
2
Medium Priority
?
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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:
Suggested Courses

649 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