osgi-bundle

Uninstall bundles and force a refresh

拜拜、爱过 提交于 2019-12-25 05:21:13
问题 I have an Eclipse plugin and want to stop, uninstall bundles from the Eclipse instance and then refresh. Stop and uninstall is no problem, but the refresh part of the code is now deprecated and I want to find an alternative. Currently I'm doing this through org.osgi.service.packageadmin . Documentation points to org.osgi.framework.wiring package. And from the JavaDoc org.osgi.framework.wiring.FrameworkWiring.refreshBundles(..) seems to be exactly what I want. But the only class that

Uninstall bundles and force a refresh

余生颓废 提交于 2019-12-25 05:20:18
问题 I have an Eclipse plugin and want to stop, uninstall bundles from the Eclipse instance and then refresh. Stop and uninstall is no problem, but the refresh part of the code is now deprecated and I want to find an alternative. Currently I'm doing this through org.osgi.service.packageadmin . Documentation points to org.osgi.framework.wiring package. And from the JavaDoc org.osgi.framework.wiring.FrameworkWiring.refreshBundles(..) seems to be exactly what I want. But the only class that

Building an OSGI plugin bundle(with transitive dependencies) using Maven on Eclipse

允我心安 提交于 2019-12-24 20:16:15
问题 I am running an application using an OSGI framework and run configuration on eclipse.I am developing a plugin to add to the main application. However, the plugin bundle has a load of transitive dependencies, some of which are OSGI bundles and some are not. However it looks like the OSGI framework expects all the dependencies to be OSGI bundles. It is a huge pain to convert all third party transitive dependencies into OSGI bundles. I was trying to embed all transitive dependent jars into the

AEM 6.3 - ResourceResolverFactory is null in Service and throwing LoginException in Sling Model class

♀尐吖头ヾ 提交于 2019-12-24 19:03:01
问题 1) I am trying to inject ResourceResolverFactory in SlingModel class like this: package com.aem.sites.models; import java.util.HashMap; import java.util.Map; import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.inject.Named; import org.apache.sling.api.resource.LoginException; import org.apache.sling.api.resource.Resource; import org.apache.sling.api.resource.ResourceResolver; import org.apache.sling.api.resource.ResourceResolverFactory; import org.apache.sling

Pax Web on Knopflerfish on Android

拟墨画扇 提交于 2019-12-24 12:48:22
问题 I'm planning to start OSGi on Android with Web Services, wherein I will be able to run Java Server Pages (jsp) and Java Servlets on Android Browser. My initial step was installing Knopflerfish on Android. I have followed this tutorial from knopflerfish: http://www.knopflerfish.org/releases/5.0.0/docs/android_dalvik_tutorial.html Knopflerfish did well, I have seen the localhost:8080 on the Android phone's browser. My second step was to install Pax Web on Knopflerfish that was also installed on

Apache Felix File Install jar from deploy folder

送分小仙女□ 提交于 2019-12-23 04:53:40
问题 I am trying to use Apache Felix File Install with an embedded version of Felix. The basic idea is simple, I have a jar application file that can be launched using standard java -jar app.jar and the application will startup Apache Felix framework and then look in a hot deploy folder installing, updating and removing the OSGi bundles that are in/placed/updated/removed from that folder at runtime. I currently have managed to create the ability to startup the embedded Felix and I can deploy

Dependency management in OSGI bundle ServiceMix

风格不统一 提交于 2019-12-23 01:28:30
问题 Hi I am new to ServiceMix, so probably I am asking same question which might be answered but I couldn't figure out. My doubt is how do I manage compile time vs runtime dependencies when using bundle in ServiceMix OSGI. That is if I am building a .jar workable(by unit tests aleast) artifact with maven where all compile time dependencies say example(camel,spring) are handled by pom.xml dependencies and are loaded into jar as needed libs for successful build. So when I am deploying the jar in

Spring component-scan broken in osgi container

无人久伴 提交于 2019-12-21 17:04:40
问题 I'm trying to integrate spring DI into an existing jaxws project. I've got this working locally on tomcat but when I deploy to the remote container it doesn't appear to do the classpath scanning. I can see in the logs that on tomcat it registers my @Components as beans but on the remote server they're not mentioned at all. What I do see is the stacktrace below. It looks like it's down to the quirky web container I have to use. It's the "integrated application server for IBM i". http://www-03

Camel in OSGi Container: Apply InterceptStrategy to all camel contexts

醉酒当歌 提交于 2019-12-21 06:53:03
问题 I have several bundles (A, B, and C) deployed to an OSGi container, each containing a CamelContext and some routes. I have another bundle (M) with a CamelContext with a route (for collecting monitoring data) and a InterceptStrategy bean. I would like the InterceptStrategy bean from M to automatically apply to all of the other CamelContext s in the container (i.e., those in A, B, and C), without having to modify the other bundles. Ultimately, the goal is to wiretap data from each CamelContext

Android Activity in OSGI Bundle

痴心易碎 提交于 2019-12-18 17:38:25
问题 I am working on developing OSGI bundles that have a full support for android. So far, by my previous questions, I was able to use android API inside OSGI bundle. It works fine and I tried it. I am using Felix framework. However, I am stuck now at the mission of making an OSGI bundle to have an android activity and to start that activity. I also need these activities to be able to request permissions so I guess I will need an AndroidManifest.xml in the OSGI bundle. While doing a research, I