Resovled some issues about MDB and JPA