On Wed, Feb 10, 2010 at 02:49:03PM +0100, Andreas Mohr wrote: > On Mon, Feb 08, 2010 at 01:14:20PM +0100, Koen Deforche wrote: > > Hey Andreas, > > > > 2010/2/1 Andreas Mohr <[email protected]>: > > If you want to serve multiple applications from different URLs, but it > > is okay if they are served from the same port (e.g. 80 or 8080), then > > I think the single-instance config should be no problem. I guess you > > are mainly looking for better interaction with the server allowing you > > to bind an entry point to a new 'createApplication' callback which you > > dlopen() from a plugin, right ? > > Yes, having a createApplication() implementation which dlopen()s > an app plugin would be the only feasible way for me now, > but OTOH this doesn't buy me anything either since there's no > destroyApplication() callback, thus lifetime of the dlopen() is unknown > and the plugin library would remain loaded forever, thus any rebuilds > of that plugin library (in order to provide updates to the WApplication) > won't make their way into the running process.
Forget what I said: the "missing" destroyApplication function is not a problem at all as long as there's proper object encapsulation as it should be. Web session will run into timeout, witty server will destroy session (it will, right? OTOH not doing so would be a _very_ visible memory leak ;), thus WApplication object will get deleted together with its _internally_ managed runtime library handling which at this point is able to close the library. OTOH I still don't know whether that would buy me much since I'd need an idle session (plugin not loaded) or hitting the (likely large) session timeout in order to reload the plugin by not having it loaded any more. Not to mention the "interesting" plugin/dlopen handling itself. Andreas Mohr ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
