Skip to main content
nak33
Known Participant
Aug 20, 2020 10:36 PM UTC
Question

CFML event gateway for asynchronous And Context

Guys,


I'm using the CFML event gateway for asynchronous which works as discribed, however, within the listener cfc I cannot access my application's CFCs as they are not within the Coldfusion /cfusion/wwwroot folder but rather in a different directory. 

 

How can I reference an existing CFC within the context of the gateway CFC

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    WolfShade
    Legend
    Aug 21, 2020 1:52 PM UTC

    Hello, nak33,

     

    I've never used this feature, so don't really know how to help you with this.  However, looking at the page you provided the link for, I did see the following:

    cfcpath
    
    Overrides the CFC path specified in the ColdFusion Administrator. This field lets you use a single gateway configuration in the ColdFusion Administrator multiple CFCs.

     

    Would this optional field allow you to specify the path to the CFCs?

     

    V/r,

     

    ^ _ ^

    Translate
    nak33
    nak33Author
    Known Participant
    Aug 21, 2020 2:03 PM UTC

    Unfortunately that's not a fix. 

     

    That attribute is to point to the CFC that digests the incoming event.  The issue is that the context within that CFC is within the wwwroot, but my application lives somewhere completely different, so when I attempt to call other CFCs (via the component="cfc_files.system.cfcname") it errors out because the CFC that I'm calling 'thinks' it's in the webroot...one would expect something in the configuration of the event gateway but I can't find it. 

     

    Thanks for chimming in!

    Translate
    nak33
    nak33Author
    Known Participant
    Aug 21, 2020 2:48 PM UTC

    Here's an example of what I'm describing.  The first is the output of the ExpandPath(/) in the event gateway the second is occuring outside the gateway.  I need the first output to be the same as the second. 

     

    Translate