> Ingo Bruell writes:
>  > Hi,
>  >
>  > >  > > > Classes under this http directory must obey all the usual
rules
>  > about
>  > >  > > > location etc.
>
> ie. a class called com.foo.bar.FooBar must be in a file called
> com/foo/bar/FooBar in the HTTP server.
Almost:
FooBar.class
;-)

>  > > does it just dish out classes the classloader has loaded?
>  >
>  > I don't know in the log the webserver says:
>  >
>  > [Webserver] Starting
>  > [Webserver] Codebase set to http://isdn-server:8083/
>  > [Webserver] Started webserver on port 8083
>  > [Webserver] Started
>
> But if I want to add a class to the webserver, where do I put it?

Create a URLClassLoader with an URL pointing to your doc, and add it to the
webserver by calling the method addClassLoader. See ContainerFactory for
example of this.

As I said, this webserver should only be used for dynamic classloading. It
is NOT meant as a real webserver serving websites and whatnot. It has not
been designed for that.

/Rickard




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to