From: Jay D. <jd...@ma...> - 2005-09-26 15:41:03
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <pre><i><font face="sans-serif">Jay, if I'm reading your email right, then you have the same "web app" that just has different static content and different JDBC connectors for each different dealership. Each dealership also has its own host name. If this is the case, I would just not bother with virtual hosts etc. etc. I would just have a single listener(connector) that listens to all interfaces (hosts) ie using the 0.0.0.0 I would then specialize my the ResourceHandler (or Default servlet - whatever you are using to server default content) to look for the dealer name in the host name ( and/or context path) and the resolve the resource accordingly. You should just be able to specialize the getResource method. Then in your own code, I'd just pick the JDBC connection by a lookup from the hostname/dealer name. That way it is all very explicit. If there are too many elements that get mixed, I'd then just create a proper webapp (war file or directory) and write code to instantiate it once for every dealer. But this could be a pain if you had lots of dealers. cheers ----</font></i> <font face="sans-serif">Greg, That sounds perfect - thank you!</font> </pre> <pre class="moz-signature" cols="72">-- Jay Dolan Software Engineer, Systems Analyst Windmill Cycles, Inc. </pre> </body> </html> |