The subscription allows to receive events published to the specified topic and all its children.
Follow the instructions below to add subscriptions for a particular topic.
- Sign In. Enter your user name and password to log on to the ESB profile's management console.
- Click the "Main" button to access the "Manage" menu.
- Click on "Browse," under "Topics", to access the "Topic Browser" page.
- The "Topic Browser" page appears. Click on the topic you want to add a subscription to.
- Click on the "Subscribe" link.
- The "Subscribe" page appears. Specify the required details.
The following options are available:
- Topic - User does not need to specify the topic here, since its automatically sets up.
- Subscription Mode- This is the mode of the subscription and there are tree modes:
- "Topic Only" - The default mode for the subscription. With this mode, user creates the subscription only to the topic. In that mode subscribers only receive events, which are published only to the that topic.
- "Topic and Immediate child" - Allows to receive events published not only the specified topic, but also to the immediate child of that topic.
- "Topic and Children" - Allows to receive events published to the specified topic and all its children
- Event Sink URL - This is the URL which the subscriber should provide to receive events published. When events are published to the topic, they are sent to the specified URL here.
- Expiration Time - Here user can specify the expiration time of the subscription. This is not a required parameter and if user leave it alone, subscription will never be expired.
7. The "WSO2 Carbon" window appears. Click "OK."