This might be widely known, but I just discovered it and I think it's really
cool.

You can set up CF mappings in the admin that have multiple parts in the
mapping.  For example rather than mapping "/com" to some directory which
forces all your CFCs to be within that one directory, you can map
"/com/barneyb/appname" to a directory, and then map "/com/barneyb/app2name"
to a totally different directory.  CF seems to use the most specific mapping
(like with servlet mappings), so it'll pick the com.barneyb.appname.myObject
cfc from with the "/com/barneyb/appname" mapping first, NOT the "/com"
mapping.

It seems to me that doing that kind of thing would solve a lot of the issues
with CFCs on shared hosts, because the shared host could create a mapping
for each domain that maps to a directory within that domain's filesystem,
and then everyone could happily use absolute paths for CFCS.

Someone feel free to slap me, if warranted, but this seems like a useful
ability.

Cheers,
barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x32
fax   : 360.647.5351
cell  : 360.319.6145

www.audiencecentral.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to