Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "ActiveMQ Service Properties"
(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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
// (If not explicitly given here, the provider is free to choose a default configuration for the service) | // (If not explicitly given here, the provider is free to choose a default configuration for the service) | ||
− | props.put("service.exported.configs","ecf. | + | props.put("service.exported.configs","ecf.jms.activemq.tcp.manager"); |
− | props.put("ecf. | + | props.put("ecf.jms.activemq.tcp.manager.id","tcp://broker.mycorp.com:33333/myRemoteServicesTopic"); |
// Register a new TimeServiceImpl service with the above props | // Register a new TimeServiceImpl service with the above props | ||
bundleContext.registerService(ITimeService.class, new TimeServiceImpl(), props); | bundleContext.registerService(ITimeService.class, new TimeServiceImpl(), props); | ||
Line 18: | Line 18: | ||
! Default Value | ! Default Value | ||
|- | |- | ||
− | | '''ecf.jms.activemq.tcp.manager.id''' | + | | '''ecf.jms.activemq.tcp.manager.id''' |
− | | URI context for a running and accessible ActiveMQ Broker. The default is '''localhost''' port '''616161''' with topic name: '''exampleTopic''' | + | | URI context for a running and accessible ActiveMQ Broker. The default is '''localhost''' port '''616161''' with topic name: '''exampleTopic''' |
− | | String | + | | String |
| '''tcp://localhost:61616/exampleTopic''' | | '''tcp://localhost:61616/exampleTopic''' | ||
|} | |} |
Latest revision as of 19:44, 18 October 2019
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.activemq.tcp.manager"); props.put("ecf.jms.activemq.tcp.manager.id","tcp://broker.mycorp.com:33333/myRemoteServicesTopic"); // Register a new TimeServiceImpl service with the above props bundleContext.registerService(ITimeService.class, new TimeServiceImpl(), props);
ecf.jms.activemq.tcp.manager config
Property Name | Description | Type | Default Value |
---|---|---|---|
ecf.jms.activemq.tcp.manager.id | URI context for a running and accessible ActiveMQ Broker. The default is localhost port 616161 with topic name: exampleTopic | String | tcp://localhost:61616/exampleTopic |