added solution for EJB 2