Note that there are some explanatory texts on larger screens.

plurals
  1. POHow does OSGi manage interaction of components running in separate JVMs?
    text
    copied!<p>I have been trying to understand a bit more about the wider picture of OSGi without reading thru the entire specification. As with so many things, the <a href="http://www.osgi.org/About/FAQ#q6" rel="noreferrer">introduction</a> to what OSGi actually is was probably written by someone who had been working on it for a decade and perhaps wasn't best placed to put themselves in the mindset of someone who knows nothing about it :-)</p> <p>Looking at Felix's example <code>DictionaryService</code>, I don't really understand what is going on. Is OSGi a distinct instance of a JVM into which you load bundles which can then find each other?</p> <p>Obviously it is <strong>not</strong> <em>just</em> this because other answers on StackOverflow are explicit that OSGi can solve the dependency problem of a distributed system containing modules deployed within distinct JVMs (plus the FAQ keeps talking about <em>networks</em>). </p> <p>In this latter case, how does a component running in one JVM interact with another component in a separate JVM? Can the two components "use" each other as if they were running within the same JVM (i.e. via local method calls), and how does OSGi manage the marshalling of data across a network (do you have to use <code>Serializable</code> for example)? </p> <p>Or does the component author have to use some other distinct mechanism (either provided by OSGi or written themselves) for communication between remote components? </p> <p>Any help much appreciated!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload