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 6659427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:01:59+00:00 2026-05-26T02:01:59+00:00

I’m trying to implement a client-sever model using OSGi. the server application is the

  • 0

I’m trying to implement a client-sever model using OSGi. the server application is the OSGi framework that is running in a computer and client applications connect to its console remotely and send their commands via a Java Socket and receive their proper responses. Each client application consists of several modules. Now I have two approaches:

1- Each module could be a bundle that is installed on the framework and client applications receive services from them. However this solution has a problem. If I wanted each client to have a special update method (e.g. Bundle A should be updated in some of them but in others it should not be updated), how can I manage this type of updates?

2- Each client application is be a bundle of bundles. Now my concern is that how can I manage the update action in a way that when I update the client application it updates the inner bundles too?

  • 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-26T02:02:00+00:00Added an answer on May 26, 2026 at 2:02 am

    Your question is decidedly generic and it is not possible to provide a detailed answer in a reasonable space and time. I will try to cover some ideas and suggestions though.

    1. Updating distinct bundles on distinct clients is a non-issue. From the programmatic viewpoint, you have many choices (I would rather suggest you read OSGi in Action for a tour of the facilities that OSGi frameworks adhering to the specification provide). I don’t know if you intend to use Remote OSGI (as of Chapter 13 of the Enterprise specification). Clearly, you want your client-server API bundles/services to be preserved. Other than that, an OSGi bundle can pick a bundle/service from whoever exposes it (more on that in OSGi in Action, again). Provisioning is another aspect: that depends on who (client or server) controls updating; on the simplest case, you just juggle bundles around manually and install/start/stop/uninstall them from the framework console.

    2. Unless I am missing something from your description, you cannot choose this path since you cannot have a bundle of bundles. This concept simply does not exist in the bare OSGi specification. The bundle hierarchy is perfectly flat, therefore you cannot perform “physical hiding”. To instead logically hide bundles behind other bundles, you must operate on the services they expose, but the burden is completely on you. You could do the same through packages, but I would not recommend that. That being said, I am not perfectly up-to-date with bleeding-edge Service Component Architecture (SCA) implementations such as Tuscany release 2. That one could give you a hand since it promised to be OSGi aware. The Tuscany SCA in Action book, while recent, covers release 1 only. A worthy read, but probably not what you are looking for. Wrapping up, you cannot monolithically update an OSGI application in the strict sense: you would have to specify each bundle to be updated. This must be seen as an advantage: you have more control on your application. The downside is clearly on the effort of managing the update at such finer granularity.

    I hope this simplified discussion was of use to you.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am currently running into a problem where an element is coming back from
I am trying to loop through a bunch of documents I have to put
We're building an app, our first using Rails 3, and we're having to build

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.