> > def contextInitialize(appServer, path): > > # Set up DBpool startup and shutdown - 7/6/03 > > appServer._dbpool = DBPool(PgSQL, 5, > > 'localhost::foodb:foouser:') > > print "Database Connection Pool successfully created." > > > > appServer.addShutDownHandler(appServer._dbpool.shutDown) > > > > Now from one of my Servlets > > I try to get a connection but it fails, I have tried > > appServer._dbpool.getConnection() and > > _dbpool.getConnection() but it always bombs out >
I've just run into this. In version 0.8 of Webware the contextInitialize() function gets passed an Application object as the first arg not an AppServer. I'm adding the bits I need to the Application object since that's easier to get in servlet code You can access the AppServer via the globalAppServer variable in WebKit.AppServer if you need it (say for the shutdown handler) Adam K ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
