I am developing a JavaFX application (Gradle, Intellij) that performs some operations remotely by connecting to an application server via WebSocket. The server is developed using Spring Boot and implemented as a STOMP WebSocket. The client part shall be somehow integrated into the existing JavaFX application. The integration of JavaFX and Spring Boot has good documentation. This post on Stackoverflow is not too recent, but there is this post on Spring blog, but also some other material based on the same idea like: samydavic blog, this project on GitHub and this post from the same person. The solution presented is very elegant but actually changes the JavaFX application to a Spring Boot application and looks too complex for the kind of application I am developing, which basically sends a json object to the server and receives another one as response. There are some useful tools like FxWeaver, spring-boot-starter-javafx but again, the are additional dependencies and more stuff to handle.
My question is: what alternative solution can be recommended (if any) to let my existing JavaFX application to have a simple stomp websocket client added?
An option which I am considering is to have a Spring Boot websocket client and to have it connected to the JavaFX application via a socket over TCP (since they will both run on the same machine) which is very easy to implement; the websocket client would work as a message broker for JavaFx application.