"Jernigan, Bob" wrote:

> Thanks, I got the application to start communicating by compiling
> the servlet as a java application and setting codebase on the
> command line with the -D option.
>
> That brings up another question or two.
> 1.  Why does the client need the codebase set?
>  I've done everything on the server side
> according to the books (which don't always agree) but it seems
> the _Stub isn't getting properly annotated.

the client needs the codebase to be set if you are going to download the stubs
on the fly.  Remember that you are downloading behaviour via RMI.  This
remotely loaded behaviour executes on the client.  It is a security issue that
requires you to explicitly set the codebase for this remote behaviour.


> 2.  If the client has to have the codebase set, how is this done
> in a servlet?  (I'd really like to avoid this.  Is there a way to
> interrogate
> the registry to see what it's doing or not doing?)

If you do not download the stubs remotely, e.g. the stubs are already in your
classpath, you do not need to set a remote classpath.

francis
--
The best thing about standards is that
there are so many to choose from.

___________________________________________________________________________
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