Adding an Enterprise Bean Reference
Use the javax.ejb.EJB annotation to inject a
reference to the DukesBirthdayBean enterprise bean.
-
Directly after the class declaration, add a private variable to
hold a reference to the enterprise bean using the @EJB annotation:
@EJB
private DukesBirthdayBean dukesBirthday;
|
-
Right-click in the editor and select Fix Imports.