The Gateway class uses the coldfusion.eventgateway.GatewayServices class to interact with the ColdFusion event gateway services. This class has the following methods:



GatewayServices getGatewayServices()

Static method that returns the GatewayServices object.

boolean addEvent(CFEvent msg)

Sends a CFEvent instance to ColdFusion for dispatching to a listener CFC.

coldfusion.eventgateway.LoggergetLogger([String logfile])

Returns a ColdFusion logger object that the event gateway can use to log information in a file.

int getMaxQueueSize()

Returns the maximum size of the ColdFusion event queue, as set in the ColdFusion Administrator.

int getMaxQueueSize()

Returns the current size of the ColdFusion event queue that handles all messages for all gateways.



This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy