Title: Tomcat ejb-refs
# Via @EJB Annotation
Which an be as simple as adding this to your Servlet, Filter, or Listener:
@EJB
private HelloLocal helloLocal;
See the [@EJB Injection Example](injection-of-other-ejbs-example.html)
for a running example. The example uses one ejb to refer to another ejb,
but the same rules apply for servlets.
# Adding ejb-ref in your web.xml
Or on the older xml-style:
EJB Reference to the bean deployed to OpenEJB
ejb/hello
Session
org.acme.HelloHome
org.acme.Hello