Which an be as simple as adding this to your Servlet, Filter, or Listener:
@EJB private HelloLocal helloLocal;
See the @EJB Injection Example for a running example. The example uses one ejb to refer to another ejb, but the same rules apply for servlets.
Or on the older xml-style:
<ejb-ref> <description> EJB Reference to the bean deployed to OpenEJB </description> <ejb-ref-name>ejb/hello</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>org.acme.HelloHome</home> <remote>org.acme.Hello</remote> </ejb-ref>
All edits are reviewed before going live, so feel free to do much more than fix typos or links. If you see a page that could benefit from an entire rewrite, we'd be thrilled to review it. Don't be surprised if we like it so much we ask you for help with other pages :)NOTICE: unless indicated otherwise on the pages in question, all editable content available from apache.org is presumed to be licensed under the Apache License (AL) version 2.0 and hence all submissions to apache.org treated as formal Contributions under the license terms.