sreg
sreg

Reputation: 369

Eclipse tooling for osgi bundle restart on workspace change

We develop a huge set of OSGi bundles based on Equinox and start it within Eclipse with a "OSGi Framework" launch configuration. The start of the framework with all necessary bundles and data takes 1-2 minutes which is the reason why we used DCEVM and JRebel to hot-deploy changed classes.

Now with Java 8 these methods do not work properly any more (DCEVM is available for Java 7 only, and JRebel has too many limitations - freezing debug sessions, no support for added instance fields etc). Since our application is quite modular, I imagine an Eclipse function (via plugin?) that monitors the workspace for class changes and restarts the affected bundles after the incremental build is finished.

Are you aware of some tooling that might help for this task?

Upvotes: 0

Views: 645

Answers (2)

skybber
skybber

Reputation: 409

DCEVM supports java8 now. Lets look at https://github.com/dcevm/dcevm If you need hotswap support Eclipse RCP/OSGI you can use https://github.com/HotswapProjects/HotswapAgent It has module for Eclipse OSGI.

Upvotes: 1

Christian Schneider
Christian Schneider

Reputation: 19606

Bndtools provides such an environment. It is also superior to the eclipse plugin perspective in a lot of other ways. For example it has great support for declarative services.

Upvotes: 3

Related Questions