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.