Skip to content

Instantly share code, notes, and snippets.

@hendrikebbers
Created February 12, 2015 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendrikebbers/7c0d042a5ba43baf950e to your computer and use it in GitHub Desktop.
Save hendrikebbers/7c0d042a5ba43baf950e to your computer and use it in GitHub Desktop.
Remote EJBs in DataFX
@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