Implementing an IceStorm Subscriber
An IceStorm subscriber is an Ice server application that hosts a subscriber object, and registers a proxy to this object with a Topic hosted by the IceStorm service.
The IceStorm/weather demo program provides a complete subscriber application. It’s available in all programming languages with server-side support.
Our weather station implementation takes the following steps:
- Obtain a proxy for the
TopicManager. This is the primary IceStorm object, used by both publishers and subscribers. - Create an object adapter to host our
WeatherStationservant. - Instantiate the servant and add the servant tot the object adapter.
- Subscribe to the
weathertopic. - Process
reportmessages until shutdown. - Unsubscribe from the
weathertopic.