I wanted to persist an object(ReportBean) to the database, but I got error message:
ReportBean
javax.persistence.TransactionRequiredException: Transactio
update to java EE 7 (CDI 1.1), you can now use @Transactional to enable the CMT in CDI beans, no need to use EJB anymore.
reference:JEE7: Do EJB and CDI beans support container-managed transactions?