java - Bundles within a Bundle -


i'm trying implement client-sever model using osgi. server application osgi framework running in computer , client applications connect console remotely , send commands via java socket , receive proper responses. each client application consists of several modules. have 2 approaches:

1- each module bundle installed on framework , client applications receive services them. solution has problem. if wanted each client have special update method (e.g. bundle should updated in of them in others should not updated), how can manage type of updates?

2- each client application bundle of bundles. concern how can manage update action in way when update client application updates inner bundles too?

your question decidedly generic , not possible provide detailed answer in reasonable space , time. try cover ideas , suggestions though.

  1. updating distinct bundles on distinct clients non-issue. programmatic viewpoint, have many choices (i rather suggest read osgi in action tour of facilities osgi frameworks adhering specification provide). don't know if intend use remote osgi (as of chapter 13 of enterprise specification). clearly, want client-server api bundles/services preserved. other that, osgi bundle can pick bundle/service whoever exposes (more on in osgi in action, again). provisioning aspect: depends on (client or server) controls updating; on simplest case, juggle bundles around manually , install/start/stop/uninstall them framework console.

  2. unless missing description, cannot choose path since cannot have bundle of bundles. concept not exist in bare osgi specification. bundle hierarchy flat, therefore cannot perform "physical hiding". instead logically hide bundles behind other bundles, must operate on services expose, burden on you. same through packages, not recommend that. being said, not up-to-date bleeding-edge service component architecture (sca) implementations such tuscany release 2. 1 could give hand since promised osgi aware. tuscany sca in action book, while recent, covers release 1 only. worthy read, not looking for. wrapping up, cannot monolithically update osgi application in strict sense: have specify each bundle updated. must seen advantage: have more control on application. downside on effort of managing update @ such finer granularity.

i hope simplified discussion of use you.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -