title: Inject @EJB bean based on conditions
body: <p>A newbie question: is there anyway that I can inject different beans based on a condition that I set in a properties file. Here's what I want to achieve:</p>
  
  <p>I set some value in properties file. If it's true, then I want to</p>
  
  <pre><code>  public class MyClass{
      @EJB
      private MyBean bean;
    }
  </code></pre>
  
  <p>if it's false, then</p>
  
  <pre><code>public class MyClass{
    @EJB
    private MyBean2 bean2;
   }
  </code></pre>
  
  <p>Is this doable?</p>