|
Java Servlets and Serialization with RMI
JavaTM RMI (remote method invocation) technology makes it very easy to create web-based applets that perform powerful server-side operations, such as accessing a database or communicating with remote server applications. However, a number of RMI limitations make its use in Internet-based applets impractical.
|
|
Creating a JDBC Servlet as RMI server
The purpose of this topic is to help you become acquainted with using the Java Servlet API, and at the same time acquainting you with using JBuilder’s built-in RMI support. This tutorial takes you through the steps of extending the capabilities of a servlet to provide RMI services for client agents. This will give servlet developers a wider option of distributing objects’ responsibilitiesCORBA.
|
|
Creating a Simple HTTP/RMI/CORBA Test Applet
The purpose of this topic is to help you become acquainted with invoking a servlet from an applet using the HTTP, RMI, or CORBA transport. This example continues from Example: creating a JDBC servlet as RMI server and Example: creating a JDBC servlet as CORBA server.
|
|
Networking our whiteboard with servlets
Find out how to easily replace the RMI and sockets networking layers with servlets.
|
|
Comparing RMI, Sockets, Servlets, EJB
We are looking at different methods to implement two-way communication for sending Java objects from one computer to another and back. Java offers Remote Method Invocation (RMI), the object-oriented Java version of Sun's Remote Procedure Call (RPC) protocol. Another possibility is to simply use a normal socket, and send objects over a plain TCP connection. Finally, instead of implementing your own server process, listening at some port, you might want to use Servlets instead, and use true HTTP protocol to send data back and forth (which supposedly should allow you to cross even the most restrictive types of firewalls by making use of an HTTP proxy). Finally, we also use an EJB Session Bean.
|
|
Using RMI with Apache Jserv
One of the greatest advantages which Jserv brings to Apache is ability to leverage the large number of API's available to Java. Remote Method Invocation (RMI) delivers several significant benefits to the servlet solution. The primary benefit of using RMI with servlets is that it significantly expands the variety of datasources which Apache can serve to the browser. Furthermore, RMI's simplifies code on the client side of the RMI connection (the servlet), and also allows for load distribution.
|