Skip to main content
Jump to: navigation, search

MQTT Service Properties

Revision as of 19:25, 18 October 2019 by Slewis.composent.com (Talk | contribs) (Created page with "These following may be provided as '''service properties''' when a remote service is registered. For example: <pre> // (If not explicitly given here, the provider is free to...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

These following may be provided as service properties when a remote service is registered. For example:

// (If not explicitly given here, the provider is free to choose a default configuration for the service)
props.put("service.exported.configs","ecf.jms.mqtt.manager");
props.put("ecf.jms.mqtt.manager.id","tcp://broker.mycorp.com:1883/myRemoteServicesTopic"); 
// Register a new TimeServiceImpl service with the above props
bundleContext.registerService(ITimeService.class, new TimeServiceImpl(), props);

ecf.jms.mqtt.manager config

Property Name Description Type Default Value
ecf.jms.mqtt.manager.id   URI context for a running and accessible MQTT Broker. The default is mqtt.eclipse.org port 1883 with topic name: exampleRemoteServicesTopic   String   tcp://mqtt.eclipse.org:1883/exampleRemoteServicesTopic

Back to the top