What is Bootstrapping in RMI?

Answer Posted / pravin bendre

To start with, you run a simple, lightweight HTTP server.
This server acts as the network server for the class files
needed for the RMI Client and Server.

The lightweight HTTP server is implemented by two classes
provided by Sun Microsystems. The file ClassLoader.java is
an abstract class, and the file ClassFileLoader.java is the
implementation class for the HTTP Server. This server is
very simple and only delivers Java class files.

You have to place the HTTP Server files in a subdirectory
different to the one containing the RMI Server and Client
files. After compilation, start the HTTP Server from within
its subdirectory and provide it a path parameter that tells
the HTTP Server to deliver class files from the RMI server
subdirectory.

Next, you create and run the bootstrap RMI Server for the
bootstrap example. The server is very similar to other RMI
Servers you have run. One of the main differences in this
example is that the client code is located in the same
directory as the server. Note that all of the files have
already been created for you. It is up to the HTTP Server
to deliver the client classes to the client computer.

Finally, you will create the RMI bootstrap loader program,
RMIClientLoader.java. Make sure that this file is located
in a separate directory from the ones containing the HTTP
Server files and the RMI Client and Server files. The sole
purpose of this program is to start and then request
the 'real' client software from the network. The requests
for classes are then serviced by the HTTP Server that you
ran earlier in the exercise.

One of the challenges of building a bootstrap program is
passing start-up information from the bootstrap portion of
the system to the real client code. The program uses a
system property to store information that must be
communicated to the real-client program.

Again, note that in this exercise it is important to run
the programs in the following sequence:

Bootstrap HTTP Server
Bootstrap RMI Server
Bootstrap RMI Client

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should synchronization primitives be used on bean methods?

540


What is ioc concept?

675


What is the difference between RMI and Corba?

2238


What are transaction attributes?

602


What is the relation between the infobus and rmi?

545






What are the steps to write p-to-p model application?

1942


What are the different approaches to represent an inheritance hierarchy?

569


Are enterprise beans allowed to use thread.sleep()?

631


What is permgen or permanent generation?

573


Which textcomponent method is used to set a textcomponent to the read-only state?

618


Is there a guarantee of uniqueness for entity beans?

555


What is a class loader? What are the different class loaders used by jvm?

570


Are we allowed to change the transaction isolation property in middle of a transaction?

548


What is bean? Where can it be used?

566


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

549