About this Example
In this example, the Manager Application pre-caches several topics even before instantiating any of the components. Publish to these topics and then use the Subscriber to subscribe to them. This simulates the component initialization use case described in the Developer's Guide. The pre-cached topics are:
  • com.example.mail.folder.select
  • com.example.mail.message.select
  • precache.**
Components can also cache-enable topics; the Subscriber component has already cache-enabled "a.**". If you publish on "a.b.c" and "a.b.d" and then subscribe to "a.b.**", the subscriber will receive the cached values. To disable caching for "a.**", destroy all subscriptions to topics matching "a.**". Use the query component to see the contents of the cache.
Event Publisher
This component allows you to publish events. Specify a topic and a value and click Publish.

Publish an Event
Cache-Enabled Subscriber
This component creates cache-enabled subscriptions. When such a subscription is created, any events in the cache that match the subscription's topic are delivered to the subscription.

Events published on a topic T are cached if there is at least one cache-enabled subscription whose topic (possibly a wildcard) matches T. To cache-enable a set of topics, create subscriptions (possibly wildcard subscriptions) that match those topics.

Subscribe

Existing Cache-Enabled Subscribers
(click to unsubscribe)
Events Received
Cache Query
This component allows you to query the cache. Specify a topic to query.

Perform a Query

Monitor Messages
This component subscribes to the subject '**'.