For bootstrapping OSGi, please refer to the following blog post that I wrote 
some time ago: http://njbartlett.name/2011/03/07/embedding-osgi.html

In order to make JavaFX available to the bundles, you should add its APIs to 
the system bundle exports as described in the blog.

It may be necessary to use OSGi services to communicate between the launcher 
and the bundles inside the OSGi framework. For example on Mac OS there is a 
requirement for GUI event loops to run on the "main" thread of the JVM... this 
is true for both Swing and SWT so I would expect it to be the case for JavaFX 
as well. In Bndtools we solved this by publishing a Runnable service from the 
bundle with the application code in it, and having the launcher listen for that 
Runnable with a ServiceTracker.

I hope this is enough to get you started. I don't have JavaFX experience but 
maybe somebody else on the list can offer more specific advice.

Regards,
Neil

On 1 November 2013 at 16:05:28, Elliot Huntington ([email protected]) 
wrote:

Hello Felix Users,  

I'm working on a project that must be shipped as either a Windows .exe or  
.msi. These installers are created by a Gradle build script that invokes  
Oracle's ant build tools to generate the native installer. Here is an  
example of the latter  
https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx
  
.  

My main goal is to make the installed application upgradeable using OSGI.  

My understanding is that I would need to have the native application  
bootstrap the OSGI container, and then each bundle would be developed in  
the normal OSGI way.  

Is there a simple tutorial demonstrating bootstrapping an OSGI container,  
and preferably making JavaFX available to the bundles?  

Reply via email to