What is the difference between osgi.startLevel and osgi.bundles.defaultStartLevel

What is the difference between osgi.startLevel and osgi.bundles.defaultStartLevel present in config.ini of equinox OSGI implementation. I Also want to know how these configuration items are related to number of bundles to be deployed?

-------------Problems Reply------------

There are two things going on: the current start-level of the OSGi Framework, and the required start-level of each bundle.

When the framework reaches a particular start-level, all of the bundles at that start-level get started. So when the framework enters level 6, all of the bundles that are at level 6 are started (but the bundles at level 7 are not yet started).

osgi.startLevel is simply the start level that the OSGi Framework will try to reach after you boot it up.

osgi.bundles.defaultStartLevel is the start level that any bundle has by default if you don't set it to something else.

So for example if you set osgi.startLevel to 3 and osgi.bundles.defaultStartLevel to 4, then basically no bundles will be started!

Category:java Views:0 Time:2011-10-27
Tags: java osgi equinox

Related post

  • How should I implement the OSGi console into a Bundle? 2012-02-22

    I'm new on OSGi and I'm trying to implement the osgi console into a bundle. I need to manage the other bundles/services from my bundle. So I need to be able to use the "ss", "install" and "unistall" commands at least on other services already install

  • Issue in starting the bundle in Felix.missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=com.sun.jersey.api.core) 2012-04-03

    I am using maven-bundle-plugin to build a war file as a bundle which I would like to deploy in Felix. Here is the POM file for the same. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s

  • setting startlevel for OSGI bundle 2011-07-07

    (I use glassfish 3.1, felix) I have a log bundle that needs to be started before other bundles in my glassfish server. Is there a way to configure startlevel for a single OSGI bundle? Any of the following ways will be fine: configuring a properties f

  • OSGI + Spring-DM cross-bundle dependency deadlock 2010-02-10

    As the title suggests, I'm having problems with OSGI + Spring DM. In my project design, i have a bundle A that requires a service svB and exports service svA. Bundle B requires svA and exports svB (among other things, of course). This seems to be cau

  • Automated OSGi dependency resolution for bundles that are maven-accessible? 2010-10-16

    It seem that there is already a fairly automated method to link, at least on the server, dependencies with their available bundles in a Maven repository, e.g., http://www.springsource.com/repository/app/bundle/version/dependencies?name=org.springfram

  • Getting OSGi services from a bundle in Sling/CQ 2011-12-21

    I am using Day CQ. I want to store some data in a SQL Server DB, using the connection pool available in the Felix console. I can do this from a JSP, by using the "sling" object of type SlingScriptHelper defined in the defineObjects tag sling.getServi

  • Is an OSGi service still "OSGi managed" when it's obtained by non-OSGi code? 2012-02-01

    As an OSGi newbie, I'm trying to wrap my head around the boundaries of the OSGi runtime. My app, which is not build on OSGi, i.e. it's not running in an OSGi container, starts an OSGi container into which we deploy OSGi bundles at run time. Some of t

  • Installing OSGi dependencies with maven-bundle-plugin 2012-04-06

    I have a java project that compiles down to an OSGi bundle. I'm using the maven-bundle-plugin to create the bundle, and the maven-sling-plugin to push the bundle to my running OSGi server. At the moment, my project has two dependencies (Guava and Gso

  • java.lang.AbstractMethodError/ClassCastException when creating integration test for osgi using felix, osgi and PaxRunner Framework 2014-06-20

    I am trying to create integration test for my bundle. basically I want to mimic the setup I have in normal web app project(wherein the test are in src/test folder) I am almost there except that I have exception when the bundle tries to activate nativ

  • OSGi felix: Sharing a class between the host application and a bundle possible? 2009-06-18

    Inside my host application I tried implement a simple pushService, which shall be used to transfer an instance of a class named Vehicle to the OSGi world, by providing a set and get method. To be able to use the service I exported both the service in

  • Is MEF OSGi for .NET? 2009-04-02

    I'm just trying to get my head around the Managed Extensibility Framework (MEF) at the moment and digging into a bit. I have an Eclipse background so in my brain I currently have the equation: MEF =~ OSGi for .NET Based on what I have heard so far. A

  • What are the differences between plug-ins, features, and products in Eclipse RCP? 2010-04-22

    What are the differences? What gets used for which purpose? --------------Solutions------------- As the RCP tutorial details Plugins are the smallest deployable and installable software components of Eclipse. Each plugin can define extension-points w

  • In Equinox Is it possible to to mark an OSGi bundle as started from its containing feature's p2.inf? 2010-06-19

    I have an Eclipse feature which includes several bundles. I want to tell p2 to mark one of those bundles as started when the feature is installed. This is possible using the bundles own META-INF/p2.inf like so, instructions.configure = markStarted(st

  • OSGi Threading Model 2010-11-07

    I have searched the Internet but failed to find a satisfactory answer. What is the threading model present in an OSGi container? Does it simply spawn a new thread to each registered bundle e.g.? Any reference regarding the threading model would be gr

  • How is the OSGi bundle start level defined? 2011-09-18

    How is the OSGi bundle start level defined? I am using Apache felix and would like to persist the start level across framework executions. I do not anticipate a need to change the start level of a bundle very frequently at all an an entry in Manifest

  • Equinox and OSGI bundles 2011-11-07

    I am trying to understand how Equinox works by looking through its underlying bundles. Can someone explain in general terms (or point out a good resource to understand) the relationship/difference between the org.eclipse.osgi and org.eclipse.equinox

  • what is the difference between and in spring DM 2012-01-29

    what is the difference between <osgi:reference> and <osgi:service> in the xml config file of spring DM. --------------Solutions------------- <osgi:reference> can be used to get a reference to existing OSGi service so your bean can u

  • Comparing OSGi Test Frameworks 2012-02-09

    I am looking into integration testing frameworks for OSGi applications. From here, I've started looking into two main options: PaxExam and SpringDM. Now from where I'm standing, these frameworks look like they do the same thing: start an OSGi framewo

  • Problems with maven built OSGi including dependencies 2012-02-15

    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 h

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.150 (s). 11 q(s)