EJB

added ejb logic