If you do modify the class as stated in the previous comments, you would no longer inject a DAO in the service layer, which is ideal. You can then inject a Service Bean, or better (a Controller) from the ECB pattern, with this RESTService acting as the Transaction Boundary (through `@Stateless`).