Created
February 12, 2015 22:46
-
-
Save hendrikebbers/7c0d042a5ba43baf950e to your computer and use it in GitHub Desktop.
Remote EJBs in DataFX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ViewController("view.fxml") | |
public class EjbViewController { | |
@RemoteEjb() | |
RemoteCalculator calculator; | |
@ViewNode | |
@ActionTrigger("calc") | |
Button myButton; | |
@Async | |
@ActionMethod("calc") | |
private void onAction() { | |
System.out.println(calculator.add(3, 3)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment