TopicSubscriber is a spring ApplicationContextListener, which
listens to all events that are raised by CloudPortal Business Manager.
This listener listen
to the following events:
In order to listen to these events customer or service provider has to extend "AbstractTopicSubscriber" class and override any receive method as per the requirement.
Customer has to publish the new class into the OSGi registry.
To publish, follow below steps:
- Create bean for the class:.
Example "<bean class="com.citrix.cpbm.admin.CustomTopicSubscriber" id="customTopicSubscriber" />" in applicationContext-admin-customizations.xml available at src/main/resources/META-INF/spring in bundle citrix.cpbm.custom.common.
- Publish the bean to OSGi registry:
Example "<osgi:service interface="com.citrix.cpbm.subscriber.TopicSubscriber" ref="customTopicSubscriber"/>" in osgi-context.xml available at src/main/resources/META-INF/spring in bundle citrix.cpbm.custom.common.
After making the
necessary changes, the customer or service provider has to rebuild the custom
packages as documented in
Installing and building