[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Automating the Equinox OSGi Console

Allain,

Use the OSGi API. Basically all the functionality of the Equinox console is accessible through the API, in fact the console commands are implemented as calls to the API.

For the specific use case you mentioned, take a look at BundleContext.installBundle(), Bundle.update(), Bundle.start(), Bundle.stop(), Bundle.uninstall().

Regards,
Neil


On Wed, Mar 23, 2011 at 12:29 PM, Allain Turgeon <allain.turgeon@xxxxxxxxxxx> wrote:
Hi,

I'm using a stand-alone Equinox OSGi console (i.e. not through Eclipse) to keep a series of "programs" up-to-date on a series of servers. I was wondering if there's a way to automate the OSGi console input? What I mean is, can I install, update, start, and stop bundles through a bootstrapper class without the need for human input?Â

I would have a bootstrapper class running on a box that would constantly read from a server repository and when a bundle gets updated/added in the repository, I want the bootstapper to trigger a bundle update/install in the OSGi solution running.

Any help/tips would be appreciated.

Thank you,
--
radian6
Allain Turgeon | Software Developer


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev