Hey Tom,
I almost exclusivley use the IIS virtual directory approach (and before
someone say's it insecure - *all* access is disabled to the virt. directory
in IIS - but that doesn't stop cf resolving it anyway)
why do i do this? - easy, try running side-by-side instances of the same
code (at various builds) on the same single cf instance server, without this
ability.
i can have three websites all with the mapping com.myorg, and all three
sites use ther own components, tags etc. cfxs have to be shared though,
howvever I dont use many of those, java classes loaded by the class loader
can be relative as well.
i use only the cfmodule syntax for custom tags, except for truly shared rock
solid utility functions which can be in a mapped custom tag directory. I
avoid cf mappings now when i can.
jrun-web.xml mappings work in webservices where cf mappings don't (havn't
tried II virt dirs) and this may have been resolved in the latest updater -
think it was.
BTW cold fusion seems to use the following order of priority when more than
one is in place
1. ColdFusion mapping
/mapping D:/somepath1/
2. jrun-web.xml mapping eg.
<virtual-mapping>
<resource-path>/mapping</resource-path>
<system-path>D:/somepath2/</system-path>
</virtual-mapping>
3. IIS Virtual Directory
/mapping D:/somepath3/
Elliot
----------------------------------------------------------------------------
--------
Subject: [CFCDev] CFC invokation
Date: Tue, 14 Sep 2004 12:14:09 -0500
From: "Schreck, Thomas (PPC)" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
This is a multi-part message in MIME format.
------_=_NextPart_001_01C49A7E.3F8B8FDC
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I stumbled across a scenario where I had a CFC file stored outside of
the web root and did not have a CF Mapping to the file location. The
only way to reference the CFC is via an IIS virtual directory. How can
that be? I am under the impression that the only way to reference a CFC
for invocation is through a CF Mapping or if the CFC is in the same
folder as the calling page, or if the CFC is in the custom tags folder.
I removed the IIS virtual directory and the invocation failed. =20
=20
Thanks -
=20
Tom Schreck
817-252-4900
[EMAIL PROTECTED]
=20
I have not failed. I've found 10,000 ways that won't work.
=20
- Thomas Edison
=20
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]