Hi Asack, Thank you for your response. The partial codes shown as follows:
| [web tier] | public class ManageBean implements Serializable { | | private Test test; | | public void saveTo() { | Utils.getTestDAO.save(test); | } | ... | } | | public class Test { | private Analyte analyte; | private Method method; | ... | } | | [ejb tier] | @Entity | @Table (name="METHODS") | public class Method { | ... | } | | @Entity | @Table (name="ANALYTE") | public class Analyte { | ... | } | | @Stateless | public class TestDAOBean{ | public void saveTo(Test test) { | em.persist(test.getMethod); | em.persist(test.getAnalyte); | } | } When I deployed the codes, I got a exception of NoClassFound for Test ... Since I already changed the original code to pass entity reference to SLSB DAO, I could not give the detail exceptions, but I really want to know why I couldn't pass a web tier reference to ejb container. Thank you very much in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932285#3932285 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932285 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user