I'm pretty sure Barney's right here: presumably you're using a mapping
in your extends= attribute and you are trying to dynamically set
mappings in each site's Application.cfc? As Barney says, the CFC is
compiled (using the active mapping at the time) and then ColdFusion is
done - and that compiled version is used for the next site and so on,
regardless of the mapping.
FWIW, you could do this on Railo because, unlike Adobe ColdFusion, it
allows for each site to have a completely isolated web context (but
within a single JVM / server instance) and compiles files per-context.
So site1 and site2 could share source code but would be treated
completely separately for compilation and runtime purposes. That said,
I think you'd be better off refactoring to use composition instead of
inheritance here with the per-site information / object passed in at
construction time - like Doug suggested.
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. --
http://getrailo.com/
An Architect's View --
http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood