Events are published to provide notification of changes to the subscription tables, changes in the list of defined topics or their access control lists.
$SYS/Broker/broker_name/Subscription/topic
The body of each publication is an XML message giving additional information concerning the registration or de-registration request.
These events are nonpersistent, non-retained publications.
Event publication topic = "$SYS/Broker/Broker1/Subscription/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Create> <Subscription clientId="mqrfh2:Broker1:client1queue" subscriptionPoint="poundsSterling" filter="currentPrice>100" user="Fred" persistent="true" localOnly="false" pubOnReqOnly="false" informIfRet="true" expiryTimeStamp="2000-12-31 23:59:59" createTimeStamp="2000-01-01 00:00:00" tempDynamicQueue="false" clientContext="hex digits"/> </Create> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Subscription/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Change> <Subscription clientId="mqrfh2:Broker1:client1queue" subscriptionPoint="poundsSterling" filter="currentPrice>100" user="Fred" persistent="false" localOnly="true" pubOnReqOnly="true" informIfRet="false" expiryTimeStamp="2005-12-31 23:59:59" createTimeStamp="2000-01-01 00:00:00" tempDynamicQueue="false" clientContext="hex digits"/> </Change> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Subscription/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Delete> <Subscription clientId="mqrfh2:Broker1:client1queue" subscriptionPoint="poundsSterling" filter="currentPrice>100" user="Fred"/> </Delete> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>