The way I used to use Spring Hibernate. Recently, as the application system increases, the system is required to be called each other, so it is determined to join the session bean. 1, EJB class first inherited
org.springframework.ejb.support.AbstractStatelessSessionBean, use of such may simplify some operations can only achieve onEjbCreate: protected void onEjbCreate () throws CreateException {userDao = (UserDAO) getDao (ServicesConstants.CONTEXT_USERDAO, UserDAO.class);} In addition, Env-Entry is added to EJBJAR.XML, and the corresponding xdoclet tag is shown below:
@ ejb.env-entry name = "EJB / BeanFactoryPath" type = "java.lang.string" value = "/ usermanager-ejb.xml" 2, the content file content corresponding to EJB in Spring is as follows: XML Version = " 1.0 "Encoding =" GB2312 ">
XML Version = "1.0" encoding = "UTF-8"?>