Destroying a BrokerClusterPublisher
The following example contains an excerpt from a sample application that shows the use of destroy method.
BrokerClusterPublisher bcp;
. . .
/* Destroy */
try {
bcp.destroy();
} catch (B rokerException ex) {
System.out.println("Error on destroy\n"+ex);
return;
}
. . .