Description
Sends a message from ColdFusion to a message receiver.
Category
Event Gateway Development
Syntax
public String outgoingMessage(coldfusion.eventgateway.CFEvent message) |
See also
Responding to a ColdFusion function or listener CFC in the Developing ColdFusion Applications
Parameters
Parameter |
Description |
---|---|
message |
A coldfusion.eventgateway.CFEvent instance containing the message to be sent. |
Returns
A gateway-specific string, such as a message ID or a status indicator.
Usage
This method handles a message sent by ColdFusion and processes it as needed by the gateway type to send a message to the (usually external) message receiver. ColdFusion calls this method when the listener method of a listener CFC returns a message or when a ColdFusion application calls the SendGatewayMessage function. ColdFusion passes the String returned by this method back as the return value of a CFML SendGatewayMessage function.
Example
The following example is the ColdFusion SocketGateway class outgoingMessage method:
public String outgoingMessage(coldfusion.eventgateway.CFEvent cfmsg) |