We very close to moving Flamingo and Fiji to exadel.org. It will probably (finally) happen next week. I just wanted to show how simple it is to call a Seam component from JavaFX using Flamingo:
Seam component (server):
@Name ("currentTime") public class CurrentTime { public Date currentTime () { return (new java.util.Date()); } }
Service interface (client):
public interface CurrentTime { public Date currentTime (); }
JavaFX script (client):
FXServiceFactory.URL = "http://localhost:8080/server-javafx/seam/resource/hessian/"; var ct = (FXServiceFactory.getService(CurrentTime.class,"currentTime") as CurrentTime); var now = ct.currentTime(); FX.println(now);
That’s it!
Leave a Reply