-
Notifications
You must be signed in to change notification settings - Fork 5
JavaFX
In case anyone is wondering how to use JavaFX, use a URL link to your FXML file in an Entry (preferably using https), you can include property files for resource bundles in your proxy codebase jar. We need the ClassLoader of the proxy for the ResourceBundle and FXMLLoader. The service proxy will need to be a Controller and have null fields for the JavaFX controller classes. After instantiating the ResourceBundle using the proxy ClassLoader, create a FXMLLoader instance using the URL link and ResourceBundle, set the proxy ClassLoader as the FXMLLoader ClassLoader and then set the proxy as the Controller.
This can all be done using a proxy preparer in your configuration, using ServiceDiscoveryManager. Remember to use secure endpoints, limit permissions and authenticate first.