Implementing MCF Broadcast

To enable you to implement broadcast, MultiChannel Framework provides a PeopleCode built-in function and a JSMCAPI interface for JSMCAPI users (agents and supervisors) to send broadcast notifications.

Note:

The broadcast notifications are displayed only in the third-party sample pages.

Subscribing and Publishing Broadcast

The JSMCAPI broadcast function is a specialized publish call to the REN server. Both JSMCAPI and PeopleCode publish to physical-queue broadcast topic (such as /Broadcast/SALES1), and the subscribers always subscribe to broadcast topic for the physical queues to which they were assigned.

To subscribe, use the following function:

BroadcastSubscribe(cluster,queue,task,state,presence,method)

To publish, use the following function:

MCFBroadcast(cluster,queue,task,state,presence,message,securitylevel,
importancelevel, senderid, NameValuePairString

To unsubscribe, use the following function:

void broadcastUnsubscribe(type)

where <type> determines the type of broadcast, system-wide, queue-wide, or agent-wide.