Has anyone done this and might have suggestions?
What I want to be able to do is have multiple applications all running
within one context. They will basically be different versions of the same
site, with some differences in style, and occasionally HTML. Other things,
like sections of the site, could be turned on or off for that site by Spring
configuration since I'm using it to configure the middle-tier. Basically, I
want to be able to have something like texashuntfish.com, and also
newmexicohuntfish.com running in the same space, only differentiated by the
URL...
So, it will need to support (per site):
- different CSS files / images
- occasionally different HTML
- different Spring contexts
I figure the best way to do this would be early in the request (before any
user code is touched), call Session.setStyle("thesitecode"); I believe this
gives me all of the CSS / images / HTML differences for free. Somewhere in
there, I will need to set the current site in something like
ApplicationContext.getSite(), using a ThreadLocal, I guess.
Has anyone done something like this or have suggestions before I just start
experimenting? Other considerations?
Thanks,
Jeremy Thomerson