On Mon, 2002-08-19 at 16:42, Ian Bicking wrote: > On Mon, 2002-08-19 at 12:47, r g wrote: > > What is the purpose of the "context"? They are not used with the cgi adapters, >right? > > Why would I have other contexts defined in the config? How would they be used or >referenced? > > Does any of the context functionality address the needs of serving 2 web sites? >Or does > > each web site run off of its own instance of the AppServer? > > Ray gave you the mod_rewrite recipes. Using them with contexts you can > host multiple websites -- though in some cases you might not want to, > for instance, two sites with the same code but different data. There > you'd probably use mod_rewrite again, but have two rules point to the > same context (adding a GET variable, perhaps, to distinguish the sites). > > You may or may not want to serve multiple sites off the same AppServer. > Contexts aren't insulated from each other -- for instance, I wouldn't > advise running a production site and a testing site off the same > AppServer. Whether to run two production sites from the same AppServer > is up to you, there's no firm rule. Some failures (particularly in C > modules) will effect the entire Python interpreter, and hence the entire > AppServer, and could mean that problems on one site would take the other > site down as well. > > Contexts are used with all adapters. They don't do much -- they're > taken from Java, where the contexts have more functionality (related to > configuration, session sharing, and some other stuff). In Webware they > are largely indistinguishable from subdirectories. > > Ian >
I am just starting to use Webware and it rocks!! I just hacked up some code for IMAP (anyone else working on this drop me mail). And I was about to do some database suff but my experience as a Java programming (Jetty/Jboss) made me wonder how to put objects into Webware? I don't know if it exist but what would be super nice if a OR (Object Repository) like a stripted down JNDI was available. I would like to be able to use the DBPool (from MiscUtil) anywhere in the Webware. It would be nice to only create it once and then store it in the OR till it was needed at a later time. There are a lot of objects that would be nice to do this with. Is there already a method of doing this? Thanks Lateef ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
