title: @Inject - UserTransaction throws weld error
body: <p>Error:</p>
  
  <pre><code>Exception 1 :
  org.jboss.weld.exceptions.DefinitionException: WELD-001451: javax.transaction.UserTransaction cannot be injected into an enterprise bean with container-managed transactions: [BackedAnnotatedField] @Inject com.evry.integrator.snow.model.dao.impl.GenericDaoImpl.userTransaction
          at com.evry.integrator.snow.model.dao.impl.GenericDaoImpl.userTransaction(GenericDaoImpl.java:0)
    StackTrace
          at org.jboss.weld.module.ejb.WeldEjbValidator.validateInjectionPointForDefinitionErrors(WeldEjbValidator.java:40)
          at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDefinitionErrors(Validator.java:336)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>public abstract class GenericDaoImpl&lt;T, PK&gt; implements GenericDao&lt;T, PK&gt; {
  
     private static final Logger LOG = Logger.getLogger(GenericDaoImpl.class.getName());
     @PersistenceContext(unitName = "IntegratorMasterdataDS")
     protected EntityManager em;
  
     @Inject
     UserTransaction userTransaction
  </code></pre>
  
  <p>Scrutiny Class</p>
  
  <pre><code>@Stateless
  public class Scrutiny {
      private static final Logger log = Logger.getLogger(Scrutiny.class.getName());
  
      public Scrutiny() {
          System.out.println("Scrutiny");
      }
  
      @Inject
      StatusDao statusDao;
  
      public JobStatus insertNewRecord(JobName jName)  {
  
      log.info("insertNewRecord:" + jName);
  
      try {
          statusDao.beginUserTransaction(); &lt;--- Here i want to begin
          statusDao.create(js);
          statusDao.flush();
          statusDao.commitUserTransaction(); &lt;--- Here i want to Commit
      } catch (Exception e) {
          log.warning("insertNewRecord:" + e);
      }
  </code></pre>
  
  <p>Status Dao:</p>
  
  <pre><code>public interface StatusDao extends GenericDao&lt;JobStatus, String&gt; {
      List&lt;JobStatus&gt; checkExistingRecordToday(JobName jName);
  }
  </code></pre>
  
  <p>Job Status Dao:</p>
  
  <pre><code>@Stateless
  public class JobStatusDaoImpl extends GenericDaoImpl&lt;JobStatus, String&gt; implements StatusDao {
  private static final Logger LOG = Logger.getLogger(JobStatusDaoImpl.class.getName());
  
  @Override
  public List&lt;JobStatus&gt; checkExistingRecordToday(JobName jName) {
  </code></pre>
  
  <p>As of now whole process is handled by JTA but i want to commit Scrutiny class instantantly which suggest job has just started and at end want to update the same.</p>