This project refers to the article What are OSGi Remote µServices published on the SMC TechBlog blog.
In this project there are the three OSGi API, Consumer and Service bundles for the Raspberry Pi service. Details are shown in the table.
Service | Bundle Name | Description |
---|---|---|
Raspberry Pi Service | Raspberry Pi API | Bundle that defines the Raspberry Pi service contract via the Java interface. The bundle exports the interface package. |
Raspberry Pi Service | Bundle that implements the interface of the Raspberry Pi service. The bundle imports the interface package. | |
Raspberry Pi Consumer | Bundle that consumes the Raspberry Pi service. The reference to the service is obtained transparently from the Service Registry. The bundle imports the interface package. |
Table 1 - OSGi bundles that will implement the example scenario for Remote µServices
$ git clone https://github.com/smclab/aries-rsa-raspberrypi-examples.git
$ cd aries-rsa-raspberrypi-examples
$ mvn package
In this terminal session you will see the clone of the repository and compilation of the project. Next you will see the connection to the console of Liferay and Apache Karaf from which I will execute commands to obtain information about the Raspberry PI, all this is possible thanks to the call to remote services (OSGi Remote µServices).
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Without specific disclaimer, all the plugins inside this repositories are free software ("Licensed Software"); you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
These plugins are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA