Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

General Event Gateway Questions.

New Here ,
Feb 11, 2007 Feb 11, 2007
I have some general questions relating to Event Gateways that I'm hoping someone can clear up for me.

When using sendGatewayMessage(gatewayID, data) does the "gatewayID" have to be configured with the CF Admin?
Is there a way to call it like you do a regular CFC?
How does it work in shared hosting?

Does it matter how long a call using sendGatewayMessage takes?
Will the default Timout cancel it or will it continue to run?

Will the CFC holding the "onIncomingMessage" function be able to access the application variables?

Thanks to anyone who can clear this up for me.
TOPICS
Event gateways
868
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 02, 2007 Mar 02, 2007
1. Yes - the dateway Id is what you define it to be in the CF Admin.

2. I don't quite understand this question :)

3. The sendGatewayMessage is just a function and is subject to the same restrictions any other function call is. In general, there is no way for it to take too much time. It just sends out the message and does not wait for it to be processed, so it takes only a fraction of a second.

4. It will be able to access them if it includes the cfapplication tag for the application you want to access application variables from 🙂 That is, you can include the application.cfm file for example in the CFC and you will get access to the Application scope for the application defined by the cfapplication scope in thath file.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 10, 2007 Mar 10, 2007
LATEST
Is there a way to call it like you do a regular CFC?
You could, but why would you want to? A gateway's CFCs, and there can be more than one, are specialized CFCs. They are event listeners and contain methods not suitable for general use.

How does it work in shared hosting?
With some difficulty, I would imagine, though it depends on the kind of gateway. In general, the number of listeners, gateway processing threads and queued events will be too limited for the traffic demands of a shared-hosting environment.

Does it matter how long a call using sendGatewayMessage takes?
Will the default Timout cancel it or will it continue to run?

What Fiffy says is true. However, it also depends on the type of gateway. The livedocs on sendGatewayMessage() say more about it.

Will the CFC holding the "onIncomingMessage" function be able to access the application variables?
Yes, listener CFCs may use variables in Application, Session or Client scope. However, you need caution when using session and client scope in gateway listeners.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources