Skip to content
pfirmstone edited this page May 4, 2023 · 1 revision

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.

Clone this wiki locally