Questionevrything
Questionevrything

Reputation: 249

OSGI bundles and multiple jvms

osgi (equinox 3.6) framework while loading bundle creates bundle meta files in specified bundle directory . we are working on spawning multiple jvm's . Can we use bundle folder where my previous jvm has created ? I meant can we install all bundles once and use them for many applications?

Upvotes: 1

Views: 712

Answers (2)

Peter Kriens
Peter Kriens

Reputation: 15372

a) Yes you can share the same location URL among frameworks b) You cannot share the framework bundle storage area/bundle cache (org.osgi.framework.storage property)

You know there is a special reference: schema for OSGi frameworks? This allows you to install frameworks quicker. Just prefix a URL with reference: scheme.

reference:file://....

Upvotes: 1

Neil Bartlett
Neil Bartlett

Reputation: 23948

It's a bit difficult to work out what you're asking... but it sounds like you want to share the OSGi storage directory between multiple separate OSGi frameworks running in different JVMs. This is not possible.

Upvotes: 1

Related Questions