*安装jboss
E:/jboss-4.2.3.GA
*复制mysql-connector-java-5.0.0-beta-bin.jar 到
E:/jboss-4.2.3.GA/server/default/lib
*修改/seam212/build/default.build.properties
jboss.home E:/jboss-4.2.3.GA
*mysql中建数据库p20090601
*修改/seam212/examples/booking/resources/jboss-seam-booking-ds.xml
<datasources>
<local-tx-datasource>
<jndi-name>bookingDatasource</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/p20090601</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>password</password>
</local-tx-datasource>
</datasources>
*编译/seam212/examples/booking/build.xml,运行jboss。
*浏览http://127.0.0.1:8080/seam-booking/
此时,打开mysql中的p20090601数据库,可以看到程序自动建立的三张表。
===================================
进一步调整参数,方便我们的操作:
*目前程序发布时,不能自动覆盖jboss目录下的发布文件,这样:
修改/seam212/examples/build.xml
第782行:
原来:
<target name="deploy" depends="archive, datasource, service, meldware" description="Deploy the example to JBoss AS">
修改后:
<target name="deploy" depends="undeploy, clean, archive, datasource, service, meldware" description="Deploy the example to JBoss AS">