Example
The
following example logs the queue size, maximum queue size, and other information
if a gatewayService.addEvent method fails to queue a message for delivery
to a listener CFC. (It uses an internal method to construct the
error message string.)
boolean sent = gatewayService.addEvent(cfmsg);
if (!sent)
{
logger.error(RB.getString(this, "IMGateway.cantAddToQueue",
gatewayType, gatewayID, ((path != null) ? path : "default"),
Integer.ToString(gatewayService.getQueueSize()),
Integer.ToString(gatewayService.getMaxQueueSize())));
}