Sends a message from ColdFusion to a message receiver.
Event Gateway Development
public String outgoingMessage(coldfusion.eventgateway.CFEvent message) |
Responding to a ColdFusion function or listener CFC in the Developing ColdFusion Applications
Parameter |
Description |
---|---|
message |
A coldfusion.eventgateway.CFEvent instance containing the message to be sent. |
A gateway-specific string, such as a message ID or a status indicator.
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.
The following example is the ColdFusion SocketGateway class outgoingMessage method:
public String outgoingMessage(coldfusion.eventgateway.CFEvent cfmsg) |
Sign in to your account