osgi

What do these OSGi commands really do?

霸气de小男生 提交于 2019-12-20 20:19:27
问题 Using Felix / Equinox, what do the following do under the hood? osgi:install osgi:refresh osgi:resolve osgi:restart osgi:update Is there a state-machine diagram or more concise documentation somewhere? 回答1: The best documentation for this is the OSGi Core Specification. The section and page numbers below refer to Release 4.3 (April 2011) of the spec. osgi:install means install a bundle from a file or stream, and it maps to the BundleContext.installBundle method in the API. Refer to section 4

Problems with maven built OSGi including dependencies

谁说我不能喝 提交于 2019-12-20 20:19:12
问题 I'm currently starting with OSGi, iPOJO and iPOJO Annotations and trying to build a simple component to be deployed in Felix. Unfortunately, I'm stumbling over various problems which take me hours to solve or which I cannot even solve after wasting hours, like the following: I want to use an existing library in my OSGi bundle which we build using Maven. The library is currently not "OSGI-ified" and we are not planning to do so in the medium term. Because of that, I want to include this

Why use @Component annotation with each service in CQ

六月ゝ 毕业季﹏ 提交于 2019-12-20 19:48:24
问题 I am bit confused about following things. I understand @Service and @Component annotations are main annotations when we define a component or a service in OSGi. I am referring to http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html and What is the difference between OSGi Components and Services Questions: A service can not be created without @Component annotation, why is that? I understand once we define a service its life-cycle is managed by

OSGi Testing

倾然丶 夕夏残阳落幕 提交于 2019-12-20 10:32:33
问题 Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple & easy to use method for testing OSGi bundles. Currently, I have to build the bundle using Maven and then execute a test harness. I'm looking for something like the JUnit test runner for Eclipse, as it will save me a

OSGi - How mature is this technology?

吃可爱长大的小学妹 提交于 2019-12-20 09:20:37
问题 I have a requirement where I need to share some web resources ( jsp , html , js , images , css etc.) across different Spring based Struts 2 applications. And seems like OSGi can be used to achieve this? Can some one give some pointers on how to achieve this with OSGi ? And secondly I want to know is OSGi mature enough to be used in production applications? Thanks in advance! EDIT: I went through this post and seems like people are able to share a web bundle across web applications. The only

Proper way to include log4j in an Eclipse 4 (RCP/SWT/OSGi) application

南楼画角 提交于 2019-12-20 06:21:17
问题 This is a follow-up (somehow of my Third-party dependencies to an OSGi application) where it was suggested that some libraries e.g. log4j are already available as bundles. In Eclipse Indigo I could not find a log4j bundle available to Import Package as part of my installation and so I created a Plugin Project from JAR archive to bundle log4j and also a Feature Project to bundle the log4j.xml configuration following this post. To be honest I don't understand why the fragment project is needed

Installing rxtx bundle in my Raspberry

老子叫甜甜 提交于 2019-12-20 06:15:32
问题 I want to install an rxtx bundle on my Raspberry Pi the bundle will be running on KURA platform (Equinox is the OSGi container for Kura) I installed the rxtx native library using: sudo apt-get install librxtx-java the .so was installed on the directory: /usr/lib/jni/ pi@raspberrypi /usr/lib/jni $ ls librxtxI2C-2.2pre1.so librxtxParallel.so librxtxRS485-2.2pre1.so librxtxSerial-2.2pre1.so librxtxI2C.so librxtxRaw-2.2pre1.so librxtxRS485.so librxtxSerial.so librxtxParallel-2.2pre1.so librxtxRaw

How to make Pax logging to use the loggback config instead of the standard log4j properties like syntax

心已入冬 提交于 2019-12-20 06:05:32
问题 I have some services in tomcat and trying to move to apache karaf. I have a existing service which uses logback for logging configuration. I tried to make same configuration in osgi, but could not achieve. Any please let me know what could be the problem? org.ops4j.pax.logging.cfg org.ops4j.pax.logging.logback.config.file=${karaf.home}/etc/logback.xml logback.xml is available at ${karaf.home}/etc/ --. Apache Karaf version : 3.0 , pax logging 1.7.1 which is packaged with karaf from build.

Blueprint maven plugin RuntimeException

时光总嘲笑我的痴心妄想 提交于 2019-12-20 04:25:31
问题 I don't have any blueprint annotations in my code, but when I try to build my bundle using maven I get [ERROR] Failed to execute goal org.apache.aries.blueprint:blueprint-maven-plugin:1.1.0:blueprint-generate (default) on project data-collection-terminal-updates: Error building commands help: RuntimeException - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.aries.blueprint:blueprint-maven-plugin:1.1.0:blueprint-generate (default) on project

Deploying OSGi Servlet to Domino

南笙酒味 提交于 2019-12-20 04:15:17
问题 I have written a servlet using the directions in this tutorial: http://www.slideshare.net/fiorep/domino-osgi-development slides 34 to 57. This worked well and was easy to debug when deployed via the pde.launch.ini. Now I want to work out how to deploy it to another server. From what I can figure out, I think the preferred way is to create an OSGi bundle and deploy it via an updatesite.nsf. When I try to add a new local update site to the update site, it prompts me for a site.xml. This is