Skip to main content

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.

Jump to: navigation, search

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.xmlrpc.server");
+
props.put("service.exported.configs","ecf.jms.activemq.tcp.manager");
props.put("ecf.xmlrpc.server.uriContext","http://myhost.com:8080"); // NOTE:  myhost.com:8080 should be exposed via HttpService impl
+
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'''&nbsp;&nbsp;
| 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'''&nbsp;&nbsp;
| String
+
| String&nbsp;&nbsp;
 
| '''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

Back to the top