Tapestry5.1 + EJB3.0登录实例
官方Java开发工程师QQ群(27163376),验证请输入您的ID。操作手册:1.开发前需求数据库:MySQL5.0(以上版本),服务器:JBoss4.2开发:Eclipse3.42.建立数据库在Mysql中新建数据库logindemo然后在数据库中新建表login_info在表中新建两个字段:login_no,password(字符串类型长度20)注:假如你想使用自己的数据库,那么在loginEJB中的ServiceImpl中需求修改对应的SQL句子,以及配置对应的实体Bean3.项目部署把项目部署到Eclipse中,把解压包内的MySql拷贝到/server/default/lib目录中。然后拷贝mysql-ds.xml文件到/server/default/deploy内。在Eclipse的JBOSS服务器选用默许的方法(不要选择all,直接default就OK)运行服务器……输入地址……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
.....太多文件了略.....
(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 /server/default/lib directory. Then copy the mysql-ds.xml file to /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 .....)
页:
[1]