Skip to content

Instantly share code, notes, and snippets.

@mathieuancelin
Created February 1, 2012 08:41
Show Gist options
  • Save mathieuancelin/1715981 to your computer and use it in GitHub Desktop.
Save mathieuancelin/1715981 to your computer and use it in GitHub Desktop.
@Inject @To(actor=Master.class) ActorEvent<Calculate> master;
master.fire(new Calculate(4, 10000, 10000));
@ActorConfig("master") @ApplicationScoped
public static class Master extends CDIActor {
public void listenCalculate(@Observes Calculate message) {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment