On Tue, 19 Dec 2000, Alistair Hopkins wrote:
> I also have lots of this sort of nonsense.
>
> My planned solution is to have only one servlet. This will act as a broker
> to load 'logic modules', which are invoked thru' the url with xtra path
> info:
>
> http://myServer/myServlet/myModule?yada=yada&foo=bar
>
> This has lots of potential advantages as all requests to a given webapp will
> be processed by the same servlet, making many things easier. The myModule
> will then implement an interface/extend functionality of my choosing, rather
> than being saddled with the servlet spec. The servlet will just load on
> startup, and any application-scope objects ith it.
So why don't you just shortcut this approach:
make a dummy servlet that will load at startup ( is a configuration job)
that instantiates the Application objects.
You don't need a broker (at least not for this problem)
Sloot.