(Official Java development engineer QQ group (27163376), please enter your ID for verification. Operation Manual: 1. Requirements before development Database: MySQL5.0 (above version), Server: JBoss4.2 Development: Eclipse3.42. Create database Create a new database logindemo in Mysql and then create a new table login_info in the database Create two new tables in the table Field: login_no, password (string type length 20) Note: If you want to use your own database, you need to modify the corresponding SQL sentence in ServiceImpl in loginEJB, and configure the corresponding entity Bean3. Project deployment Deploy the project to Eclipse , copy the MySql in the decompressed package to the [Jboss_homt]/server/default/lib directory. Then copy the mysql-ds.xml file to [Jboss_hom]/server/default/deploy. In the JBOSS server of Eclipse, choose the default method (do not select all, just default is OK) to run the server... Enter the address... OK.
loginEJB\.settings\.jsdtscope
loginEJB\.settings\org.eclipse.jdt.core.prefs
loginEJB\.settings\org.eclipse.wstmonponent
loginEJB\.settings\org.eclipse.wstmon.project.facet.core.xml
loginEJB\.settings\org.eclipse.wst.jsdt.ui.superType.container
loginEJB\.settings\org.eclipse.wst.jsdt.ui.superType.name
loginEJB\build\classes\META-INF\MANIFEST.MF
loginEJB\build\classes\META-INF\persistence.xml
loginEJB\build\classes\sei\ynu\edu\cn\bean\LoginInfo.class
loginEJB\build\classes\sei\ynu\edu\cn\service\LoginInfoService.class
loginEJB\build\classes\sei\ynu\edu\cn\service\LoginInfoServiceImpl.class
loginEJB\ejbModule\META-INF\MANIFEST.MF
loginEJB\ejbModule\META-INF\persistence.xml
loginEJB\ejbModule\sei\ynu\edu\cn\bean\LoginInfo.java
loginEJB\ejbModule\sei\ynu\edu\cn\service\LoginInfoService.java
loginEJB\ejbModule\sei\ynu\edu\cn\service\LoginInfoServiceImpl.java
loginEJB\.classpath
loginEJB\.project
loginWEB\.settings\.jsdtscope
loginWEB\.settings\org.eclipse.jdt.core.prefs
loginWEB\.settings\org.eclipse.wstmonponent
loginWEB\.settings\org.eclipse.wstmon.project.facet.core.xml
loginWEB\.settings\org.eclipse.wst.jsdt.ui.superType.container
loginWEB\.settings\org.eclipse.wst.jsdt.ui.superType.name
loginWEB\build\classes\sei\ynu\edu\cn\bean\LoginInfo.class
loginWEB\build\classes\sei\ynu\edu\cn\config\LoginInfoConfig.class
loginWEB\build\classes\sei\ynu\edu\cn\pages\Start.class
loginWEB\build\classes\sei\ynu\edu\cn\pages\Start.tml
loginWEB\build\classes\sei\ynu\edu\cn\pages\Success.class
loginWEB\build\classes\sei\ynu\edu\cn\pages\Success.tml
.....too many files .....)