Created
July 14, 2016 15:13
-
-
Save diogonicoleti/048a21ef5e227340ed9f5550269566d5 to your computer and use it in GitHub Desktop.
EJB
This file contains hidden or 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
@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