title: why is my @EJB not getting injected to my web service?
body: <p>I have a basic EJB 3.0 (Java EE 5) project in IBM RAD (aka Eclipse 3.4) and WebSphere 7.0</p>
  
  <p>I created an EAR project, an EJB project (for the EJBs), a JPA project (for the domain objects), and a Dynamic Web project (for my JAX-RS web service).</p>
  
  <p>The EJB project contains an EJB like so:</p>
  
  <pre><code>@Stateless
  public TestBean implements TestBeanLocal { 
  /* ... */
  
  @Local
  public TestBeanLocal {
  /* ... */
  </code></pre>
  
  <p>The Web project contains a JAX-RS web service like so:</p>
  
  <pre><code>@Path(value="/mywebservice")
  public MyWebService implements Application {
    @EJB
    private TestBeanLocal myBean;
  
    @GET
    @Produces({"text/plain"})
    public String getList() {
      return myBean.getList();
      /* ... */
  </code></pre>
  
  <p>My problem is the "myBean" attribute in MyWebService is never injected.  It's always null.</p>
  
  <p>Any ideas what I missed? </p>
  
  <p>Thanks,
  Rob</p>