title: CDI with desktop application
body: <p>Have some business logic using CDI (@javax.inject.Inject and @javax.persistence.PersistenceUnit). Want reuse it inside desctop application.</p>
  
  <p>Added beans.xml into META-INF folder. Set Java 7 as default. Wrote simple class:</p>
  
  <pre><code>public class Main {
  
         @Inject
         private static AggregatedUserQueries aggregatedUserQueries;
  
         public static void main(String[] args) {
               System.out.println(aggregatedUserQueries);
         }
  }
  </code></pre>
  
  <p>Of course it prints "null" to console. Are there any way to use CDI with desctop application?</p>