Skip to content

Instantly share code, notes, and snippets.

@diogonicoleti
Created July 14, 2016 15:13
Show Gist options
  • Save diogonicoleti/048a21ef5e227340ed9f5550269566d5 to your computer and use it in GitHub Desktop.
Save diogonicoleti/048a21ef5e227340ed9f5550269566d5 to your computer and use it in GitHub Desktop.
EJB
@Stateless
public class EjbA {
@Inject
private EjbB b;
public void call() {
b.one();
b.two();
}
}
@Stateless
public class EjbB {
public void one() {
// do something
}
public void two() {
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment