Broker 10.5 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Event Types | Destroying Infosets
Destroying Infosets
Destroying Multiple Infosets
You can use the BrokerAdminClient.destroyEventTypeInfoset method to destroy an infoset for an event type on the Broker to which your BrokerAdminClient is connected. You must supply the name of the event type and the name of the infoset you wish to destroy.
The following example illustrates how to use the destroyEventTypeInfoset method to destroy an infoset for an event type:
. . .
BrokerAdminClient c;
try {
/* Create a Broker admin client */
c = new BrokerAdminClient(broker_host, broker_name, null,
client_group, "My ",null);
/* Destroy an infoset for an event type definition */
c.destroyEventTypeInfoset(“myEventType”, “myInfoset”);
} catch (BrokerException ex) {
System.out.println("Error while destroying the infoset\n"+ex);
. . .