Skip to main content
Jump to: navigation, search

Difference between revisions of "EIG:Install TimeService Tutorial into Apache Karaf"

Line 5: Line 5:
 
To run the remote time service host example on Apache Karaf with ECF Remote Services, first install [[EIG:Install_into_Apache_Karaf | Install the ECF Remote Service SDK into Apache Karaf]].  Then use the command shell to set the following system properties:
 
To run the remote time service host example on Apache Karaf with ECF Remote Services, first install [[EIG:Install_into_Apache_Karaf | Install the ECF Remote Service SDK into Apache Karaf]].  Then use the command shell to set the following system properties:
  
'''system:property verboseRemoteServiceAdmin true
+
'''system:property verboseRemoteServiceAdmin true'''<br>
 
+
'''system:property service.exported.configs ecf.generic.server'''<br>
system:property service.exported.configs ecf.generic.server
+
'''system:property ecf.generic.server.port 3288'''<br>
 
+
'''system:property ecf.generic.server.hostname localhost'''<br>
system:property ecf.generic.server.port 3288
+
'''system:property ecf.exported.async.interfaces *'''<br>
 
+
system:property ecf.generic.server.hostname localhost
+
 
+
system:property ecf.exported.async.interfaces *'''
+
  
 
Then install the timeservice host example
 
Then install the timeservice host example

Revision as of 17:19, 13 July 2015

Introduction

See the Building your first OSGi Remote Services Tutorial to understand how to design and build this example TimeService.

To run the remote time service host example on Apache Karaf with ECF Remote Services, first install Install the ECF Remote Service SDK into Apache Karaf. Then use the command shell to set the following system properties:

system:property verboseRemoteServiceAdmin true
system:property service.exported.configs ecf.generic.server
system:property ecf.generic.server.port 3288
system:property ecf.generic.server.hostname localhost
system:property ecf.exported.async.interfaces *

Then install the timeservice host example

karaf@root()> feature:install -v ecf.rs.examples.timeservice.host

This will install the timeservice host, and start it producing the following output on console

Karafinst4.png

The output after the EXPORT_REGISTRATION indicates that the TimeService has been exported as a remote service and is ready for remote consumer discovery and usage.

For reference, this output is produced by the TimeService Examples Host activator class com.mycorp.examples.timeservice.host.Activator

Back to the top