title: Injection of @Startup @Singleton bean instance is null - Tomee Webprofile 1.6.0.2
body: <p>My instance of a @Singleton @Startup bean that Tomee is successfully creating, starting and placing in 'My Singleton Container' is null when I try to use it in a POJO. I've tried with and without the @ManagedBean anotation for the POJO.  Have I missed something basic in the spec or tutorial?</p>
  
  <p>Many thanks in advance,
  Ted S.</p>
  
  <p>Tomee startup log:</p>
  
  <pre><code>Dec 21, 2014 2:48:24 PM org.apache.openejb.assembler.classic.Assembler startEjbs
  INFO: Started Ejb(deployment-id=MyStartupBean, ejb-name=MyStartupBean, container=My Singleton Container)
  </code></pre>
  
  <p>MyStartupBean.java:</p>
  
  <pre><code>@Startup
  @Singleton
  public class MyStartupBean
  {
      private final Properties _companyNames = new Properties();
  
      @PostConstruct
      public void init() 
      {   
          _companyNames.put("key1", "ABC Company");
          _companyNames.put("key2", "XYZ Company");
       }
  
      public Properties getCompanyNames()
      {
          return _companyNames;
       }
  }
  </code></pre>
  
  <p>MyPojo.java:</p>
  
  <pre><code>public class MyPojo
  {
      @EJB
      private MyStartupBean _startupBean;
      private String _companyName;    
  
      public MyPojo(String inputKey)
      {
          Properties companyNames = _startupBean.getCompanyNames(); // &lt;== _startupBean is null
          String name = companyNames.getProperty(inputKey);
          setCompanyName(name);
      }
  
      public void setCompanyName(String name)
      {
          _companyName = name;
      }
  
      public String getCompanyName()
      {
          return _companyName;
      }
  }
  </code></pre>