Hi RMI-ers and Servlet-ers,

Say I have a client applet that passes its query criteria
to a servlet.  This servlet then has to talk to a RMI server to
get the query result back (to the applet eventually).

My question is what is the most efficient way to establish and
maintain the connection between the servlet and the RMI server.

Thus we have many applets ==> many threads of 1 servlet ==> and
should  I

(a) perform a naming lookup in the doGet (i.e. 1 per thread)
and uses that remote object to do the query thing or

(b) has an instance variable (remote object reference to the
RMI server) in the servlet ?

I think (b) is a better approach, but I would have to synchronize
the block that make the remote method call, right?  What is the
overhead of this and would it beat the overhead in using (a).

Thanks for any suggestion,
Wendy

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to