Solved

Using RMI with HTTP

Posted on 1998-08-31
2
163 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 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