What is Bootstrapping in RMI?



What is Bootstrapping in RMI?..

Answer / 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

More Advanced Java Interview Questions

What is MOM?

1 Answers   Wipro,


What happens when a thread cannot acquire a lock on an object?

0 Answers  


Is multiple try block is possible in single java Application......

3 Answers  


What do you need to set-up a cluster with jboss?

0 Answers  


Explain about RMI Architecture?

0 Answers  






How many JSP scripting elements and what are they?

4 Answers   TCS,


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

0 Answers   Infosys,


how can u cal servlet from java?

7 Answers  


what is difference between checked exception & unchecked exception in java?

3 Answers   Ness Technologies,


Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?

5 Answers   HCL, Mobillo Venture,


What is scalable, portability in the view of J2EE?

0 Answers  


What will happens, when a thread cannot acquire a lock on an object?

2 Answers  


Categories