|
|
|
Re: Auto PDE reload of 'Web' OSGi bundles? [message #635159 is a reply to message #635117] |
Mon, 25 October 2010 19:27 |
Kaloyan Raev Messages: 201 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
David Erickson wrote on Mon, 25 October 2010 19:32 |
Nice tip, I hadn't seen the refresh command. Is this an Equinox command or in the OSGi spec? I hadn't seen it on the Bundle or BundleContext class previously.
|
This is an OSGi command. If you look for an API, you should look at the PackageAdmin service (method refreshPackages):
http://www.osgi.org/javadoc/r4v42/org/osgi/service/packagead min/PackageAdmin.html
David Erickson wrote on Mon, 25 October 2010 19:32 |
I also didn't realize that Eclipse is rebuilding the jar everytime you save a resource, could I build a simple bundle that polls the modified time of the installed bundles and reloads them automatically from inside equinox? Obviously this isn't ideal, but would be a simple stop-gap between now and there being a trigger coming from Eclipse -> Equinox indicating a bundle needs to be refreshed.
|
Well... Tracking changes in the workspace project is a problem already solved by the WTP Server API. There is no need to think about this when implementing the Generic OSGi Server Adapter.
David Erickson wrote on Mon, 25 October 2010 19:32 |
Also I saw you were looking at November for an initial contribution of code.. I'd be happy to help test at least this feature in particular if desired.
|
There are ongoing discussions with other parties that want to contribute. I believe these discussions will settle done in a month and the project will be created. Then the contribution will be possible.
[Updated on: Mon, 25 October 2010 19:27] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02128 seconds