Added CDI and EJB. Fixed the Transaction issue.