I have a similar problem in the CMSC. I have a servlet which starts the portal and serves request for it. One of the services in the portal loads pages from MMbase. It can only do that when MMbase and all its modules are started. With an empty database mmbase and the mmadmin module have to be loaded before the portal service can process requests. At the moment, I block everything so it reminds me that it should be fixed some time. The servlet is waiting in the init method which blocks the tomcat manager. Tomcat 5.5 improved in startup time and this just undoes that.

A possible solution is to extend the event system with mmbase / module startup and shutdown events. An external system could listen for these events. Another solution is to let mmbase do a callback to the external system when it is done loading.

Nico

Kees Jongenburger wrote:

Hello

I am trying to start MMBase in a fasionable way.
we have different servlets and mmbase modules

I would like the servlet to start accepting requests once the whole
system is initialized. When I look at the different servlets in the
mmbase distro it looks like
they resolve the problem in different way's. does anybody have best
practices to solve the problem?

I was thinking of a servlerFilter that intercepts requests untill the
whole system is initialized. but is is OK to let the servlets wait in
the init for mmbase to finnally be ready?

greetings
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to