cern::cmw::mom::test::PropertySubscription Class Reference
Inheritance diagram for cern::cmw::mom::test::PropertySubscription:
[legend]Collaboration diagram for cern::cmw::mom::test::PropertySubscription:
[legend]List of all members.
Detailed Description
This example shows how to subscribe to a device property through the pubsub API.
<blockquote>
public void subscribeToProperty() {
String topic = MappingService.mapPropertyToTopic(DEV_CLASS, DEV_INSTANCE, DEV_PROPERTY);
String cycle_selector = MappingService.mapCycleSelectorToSelector(CYCLE_SELECTOR);
try {
subscriptionToken = sub.subscribe( topic, this, cycle_selector);
} catch(javax.jms.JMSException je) {
je.printStackTrace();
} catch (javax.naming.NamingException ne) {
ne.printStackTrace();
}
}
</blockquote>
Constructor & Destructor Documentation
cern::cmw::mom::test::PropertySubscription::PropertySubscription |
( |
|
) |
[inline] |
|
Member Function Documentation
void cern::cmw::mom::test::PropertySubscription::main |
( |
String[] |
args |
) |
[inline, static] |
|
void cern::cmw::mom::test::PropertySubscription::onMessage |
( |
javax.jms.Message |
message |
) |
[inline] |
|
|
Method onMessage
- Parameters:
-
|
void cern::cmw::mom::test::PropertySubscription::subscribeToProperty |
( |
|
) |
[inline] |
|
|
Method subscribeToProperty |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:06 2009 for ACS Java API by
1.3.8