title: Inject Singleton Session Bean into a Stateless Session Bean
body: <p>Is it allowed (and good practice) to hold some shared informations in our application by using a Singleton Session Bean inside a Stateless Session Bean?</p>
  
  <p>The SSB will be injected into the SLSB.</p>
  
  <pre><code>@Stateless
  public class MySLSB {
  
      @Inject
      MySSB mySSB;
  </code></pre>
  
  <p>-</p>
  
  <pre><code>@Singleton
  @Lock(READ)
  public class MySSB implements Serializable {
  
      private static final long serialVersionUID = 1L;
  </code></pre>