This sample is a simple airline reservation system using EJB CMP2.0, JSP and Struts.
The build script will build an EAR file which can be deployed to the following Application Servers:
-JBoss 3.0.0
-WebLogic Server 6.1 sp2
This is a sample on how to use Middlegen. The Ant build.xml script demonstrates how to invoke Middlegen.
The same script will also invoke XDoclet and package the whole application.
What you need to do:
* For a quick overview
-Install Ant 1.5 on your computer (http://jakarta.apache.org/ant)
-Run "ant overview"
* To configure Middlegen for your J2EE environment and run the test samples
-Install Ant 1.5 on your computer (http://jakarta.apache.org/ant)
-Create the database (there are sql scripts for mysql and postgres)
-Configure a datasource in your app server which can return a connection to the same database
-Run ant
-Deploy the generated EAR file to your app server
-Access the web application in your browser (http://<yourappserver/webserver>/airline/index.jsp)
That's it really. The rest of the work is to poke around and try to understand what's going on, and how you can use this
build.xml script as inspiration for your own project. Fore more info, please refer to the FAQ, mailing lists and the general
documentation.
Have fun and save some bucks!
Aslak Helles�y
没有合适的资源?快使用搜索试试~ 我知道了~
MiddleGen(可以把数据库表映射成.hbm.xml的工具)
共84个文件
jar:35个
xml:18个
sql:9个
5星 · 超过95%的资源 需积分: 7 10 下载量 4 浏览量
2010-09-03
07:24:27
上传
评论
收藏 5.14MB RAR 举报
温馨提示
可以把数据库表映射成.hbm.xml的工具。 虽然现在都基本上用annotation了,不过可以下载来熟悉下!!
资源推荐
资源详情
资源评论
收起资源包目录
middlegen.rar (84个子文件)
middlegen
log4j.properties 3KB
src
application.xml 539B
middlegen
cmp20-flights-class-code.txt 754B
cmp20_ro-ALL-class-comments.txt 122B
cmp20-persons-class-comments.txt 301B
cmp20-flights-name-mutator-comments.txt 179B
cmp20_ro-persons-class-comments.txt 303B
cmp20-ALL-class-comments.txt 112B
sql
airline-db2.sql 846B
airline-mckoi.sql 880B
airline-mssql.sql 905B
airline-hsqldb.sql 1KB
airline-firstsql.sql 830B
airline-sybase.sql 1KB
airline-postgresql.sql 840B
airline-mysql.sql 1KB
airline-oracle.sql 3KB
web
WEB-INF
tlds
struts.tld 52KB
struts-form.tld 37KB
struts-bean.tld 8KB
struts-html.tld 47KB
struts-template.tld 2KB
struts-logic.tld 12KB
xdoclet
servlets.xml 2KB
taglibs.xml 956B
servlet-mappings.xml 599B
templates
simple.vm 91B
single-table.vm 1013B
build
gen-src
config
database
firstsql.xml 1KB
mysql.xml.bak 1KB
as400db2.xml 1KB
oracle.xml 1KB
mckoi.xml 3KB
mssql.xml 1KB
postgresql.xml 1KB
mysql.xml 1KB
db2.xml 1KB
readme.txt 1007B
sybase.xml 1KB
mckoi.conf 11KB
hsqldb.xml 1KB
ejb
weblogic.xml 3KB
jboss.xml 2KB
readme.txt 595B
mvcsoft.xml 3KB
lib
xdoclet-1.2.2-RC1.jar 143KB
xdoclet-bea-module-1.2.2-RC1.jar 102KB
xdoclet-mvcsoft-module-1.2.2-RC1.jar 15KB
xdoclet-apache-module-1.2.2-RC1.jar 77KB
commons-configuration-1.0-dev-3.20030607.194155.jar 39KB
velocity-1.4-dev.jar 351KB
xdoclet-ejb-module-1.2.2-RC1.new.jar 209KB
xdoclet-hibernate-module-1.2.2-RC1.jar 46KB
commons-collections-2.1.jar 161KB
xdoclet-java-module-1.2.2-RC1.jar 21KB
hsqldb-1.7.1.jar 252KB
struts-1.0.2.jar 323KB
xdoclet-xdoclet-module-1.2.2-RC1.jar 54KB
mysql-connector-java-5.0.5-bin.jar 501KB
village-2.0-dev-20030825.jar 25KB
jdo.jar 20KB
commons-lang.jar 62KB
torque-3.1.jar 140KB
commons-logging-1.1-dev.jar 22KB
ejb.jar 13KB
xml-apis.jar 121KB
jdbc2_0-stdext.jar 7KB
xerces.jar 875KB
xdoclet-jdo-module-1.2.2-RC1.jar 25KB
xdoclet-jboss-module-1.2.2-RC1.jar 113KB
hibernate2.jar 863KB
log4j-1.2.7.jar 342KB
postgresql.jar 115KB
hibernate-tools.jar 113KB
servletapi-2.3.jar 76KB
xdoclet-jmx-module-1.2.2-RC1.jar 11KB
entityfacade.xdt 6KB
jdom.jar 124KB
torque-gen-3.1.jar 186KB
xdoclet-web-module-1.2.2-RC1.jar 46KB
xjavadoc-1.0.3.jar 223KB
build.xml 39KB
build.properties 1KB
README.TXT 1KB
共 84 条
- 1
资源评论
- 陈易德2013-08-14用过了感觉不错,就是没有src
yilong7797
- 粉丝: 4
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功