public String addCustomer(Customer customer) { customerService.addCustomer(customer);
The above defines a JavaServer Faces (JSF) backing bean in which the EJB is injected by means of the @EJB annotation.