Search code examples
osgiequinoxosgi-bundle

How to install bundles to remote locations OSGI Equinox


I am using the OSGI framework, mainly Equinox.

I know how to get bundles working on a local system.

osgi> install file:path/to/file

or if theyre in a remote location then:

osgi> install http://ip_addressordomain:filelocation

How do I have it so I can have my osgi console running on Machine A and from it start and run a bundle on Machine B?


Solution

  • There are a couple of options. You can tell Equinox to create the console on a TCP/IP port rather than using standard input, for example:

    java -jar org.eclipse.osgi_blah.jar -console 9999
    

    ... and now you can telnet into the machine on port 9999. Bear in mind however that this is very insecure, so not something you should do in a production environment.

    Alternatively you can use the Felix Web Console, which will give you a full web-based management console for the OSGi framework.