Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Publishing and Delivering Events | Publishing Events | Publishing an Event
Publishing an Event
After initializing the necessary event fields, your application may publish an event by calling the awPublishEvent function. The following example contains an excerpt from the publish1.c sample application that shows the use of the awPublishEvent function to publish a single event. The function accepts these parameters:
*A BrokerClient handle.
*A BrokerEvent handle.
. . .
BrokerClient c;
BrokerEvent e;
. . .
err = awPublishEvent(c, e);
if (err != AW_NO_ERROR) {
printf("Error on publish\n%s\n", awErrorToString(err));
return 0;
. . .