yes there is a way, you add the dir to your CF mapping and then in your flex
install edit the config to look for CFCs inside the CF mapped directories.
 Your situation will work fine, with external and internal CFCs just that
the external CFC directory has to be known to CF so that it can share it
with Flex when needed.
to do so, go to your ColdFusion 8 (i presume 8) install directory, go to the
wwwroot dir, open the web-inf dir, open the flex dir, open the
remoting-config.xml  in there you will find the following:

            <access>
                <!-- Use the ColdFusion mappings to find CFCs, by default
only CFC files under your webroot can be found. -->
                <use-mappings>true</use-mappings> **** Change this to TRUE
                <!-- allow "public and remote" or just "remote" methods to
be invoked -->
                <method-access-level>remote</method-access-level>
            </access>


then you can use the local references from your mapped dir to get to your
CFCs, and this would be a one-time thing.  I personally don't have a
multi-server model, so I can't say if there is anything else required for
that.

Rob


Rob

On Thu, Dec 18, 2008 at 10:56 PM, Jamie Jackson <[email protected]> wrote:

> > >so then you will have to do what Paul suggested and edit the file to
> > go to
> > >the correct web root :)
> >
> > So is there no way to put the CFCs in any other place, and have them
> > still work? It seems bizarre to require that flash remoting apps need
> > some files to go over here (in the virtual host root), and some to go
> > over there (in the "CF" web root). But is that the way it has to
> > work?
> >
> > Consider this. Here's the way I wanted it to work.
>
> Bah, I messed up those paths, so just to correct them to avoid confusion:
>
> Say my virtual host doc root is:
> /var/www/apps/myapp/wwwroot/
>
> My internal CFCs are here:
> /var/www/apps/myapp/model/
>
> And my remote CFCs (that serve as remote proxies for my internal CFCs) are
> here:
> /var/www/apps/myapp/wwwroot/cfc/
>
> My Flex app is here:
> /var/www/apps/myapp/wwwroot/flex/
>
> > Is that not possible? If not, why? This stuff is still pretty new and
> > foreign to me.
> >
> > Thanks again,
> > Jamie
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5613
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to