Skip to main content
nak33
Known Participant
August 20, 2020
Question

CFML event gateway for asynchronous And Context

  • August 20, 2020
  • 1 reply
  • 417 views

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 has been closed for replies.

    1 reply

    WolfShade
    Legend
    August 21, 2020

    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,

     

    ^ _ ^

    nak33
    nak33Author
    Known Participant
    August 21, 2020

    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!

    nak33
    nak33Author
    Known Participant
    August 21, 2020

    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.