Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6580905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:05:10+00:00 2026-05-25T16:05:10+00:00

How is the OSGi bundle start level defined? I am using Apache felix and

  • 0

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.MF seems the most sensible. I’ve to org.osgi.framework.startlevel but have not seen a practical example.

I am also using maven with the maven-bundle-plugin, if there is an elegant way to incorporate the start level in the POM that would be brilliant.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:05:10+00:00Added an answer on May 25, 2026 at 4:05 pm

    Bundles don’t define their own start level at build-time; the administrator or agent that installs the bundle into the framework defines it.

    The core framework defines a Start Level interface in section 8. Quoting:

    The Start Level API provides the following functions:

    • Controls the beginning start level of the OSGi Framework.

    • Is used to modify the active start level of the Framework.

    • Can be used to assign a specific start level to a bundle.

    • Can set the initial start level for newly installed bundles.

    The last two are relevant to your inquiry here. Section 8.3.4—Changing a Bundle’s Start Level—indicates that the framework will store an assigned start level persistently.

    If you’re using Apache Felix, there are several ways you can install bundles and assign their start level, whether explicitly or by allowing them to inherit a default start level for installed bundles:

    • Felix File Install (see the felix.fileinstall.start.level property, though it’s not per-bundle)
    • Felix Bundle Auto-Deploy (see the felix.auto.install.<n> property)
    • GoGo Shell Command (see the bundlelevel command)

    Also, see the felix.startlevel.bundle property, which controls bundles installed through means other than those above.

    As for setting a manifest property (such as with Maven at build time), there used to be a way to do this in Equinox—now deprecated—but there is no standard means for a bundle to indicate to the framework what its proper start level should be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to be able to easily start an OSGi framework (preferably Equinox) and
OSGi bundle start levels can be defined per bundle during runtime per the BundleStartLevel
I am using NetBeans 6.9 Beta and I would like to accomplish the following:
I'm using Netbeans 6.9 RC2 and Maven OSGi Bundle project template. Actually i dont
I wrap my project in OSGi bundle(just call my first start method from Activator.start()).
I have a Java application. I created a OSGi bundle and in Activator.start i
I am using the aQute Bnd toolset to create an OSGi bundle and have
Manifest: Manifest-Version: 1.0 Bundle-Name: Mahjong Bundle-Activator: MahjongActivator Bundle-SymbolicName: Mahjong Bundle-Version: 1.0.0 Import-Package: org.osgi.framework Compiling
I'm using netbeans, project: 'maven OSGI bundle', i have bundle activator running fine in
I want to create an OSGi framework programmatically, load a Bundle with it and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.