电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

运行seam 的example下面的实例


发布日期:2018/6/18
 

需要软件

ant

jbossGA

jdk

jboss seamjbossseamCR

在运行实例的过程中无非是完成 项目的部署以及 数据库的生成

在E\jbossseamCR (seam 解压后的路径) 下面找buildproperties 在最末一行添加一行jbosshome=E\\jbossGA 注意在windows下面是\\

启动jboss

部署booking这个例子首先用cmd进入E\jbossseamCR\examples\booking 这个路径下面直接ant deploy 结束后console会有提示然后去jboss 的E\jbossGA\server\default\deploy 目录下面看看是否已经部署成功如果部署成功会有jbossseambookingearjbossseambookingdsxml 这个文件生成

修改jbossseambookingdsxml

<?xml version= encoding=UTF?>

<!DOCTYPE datasources

PUBLIC //JBoss//DTD JBOSS JCA Config //EN

ds__dtd>

<datasources>

<localtxdatasource>

<jndiname>bookingDatasource</jndiname>

<connectionurl>jdbc:hsqldb:yourdb</connectionurl>

<driverclass>orghsqldbjdbcDriver</driverclass>

<username>sa</username>

<password></password>

</localtxdatasource>

</datasources>

修改完后你可以去你的hsqldb下面去找生成的数据jboss自己带一个tool 可以查看数据这个tool是个awt程序在jboss console 里面——》

jboss

database=localDBservice=Hypersonic——》

void startDatabaseManager()

MBean Operation

点击invoke就可以启动这个tool file ——》connect ——>URL 更改为jdbchsqldbyourdb 就可以查看到delopoy后自动建的表以及初始化数据!

运//localhost/seambooking/就可以跑这个example了

最后总结一下如果把seam所有的example搞清楚你就基本搞清楚seam 的几乎所有内容因为example牵扯了几乎所有seam的feature

这是seam example 里面的内容

blog/ The Seam blog example showing how to write

RESTful applications using Seam

booking/ The Seam Booking demo application for EJB

contactlist/ The Seam Contact List demo demonstrating use

of the Seam application framework

drools/ A version of the number guessing example that

uses Drools with jBPM

dvdstore/ The Seam DVD Store demo demonstrating jBPM

support in Seam

groovybooking/ The Seam Booking demo ported to Groovy

hibernate/ The Seam Booking demo ported to Hibernate

icefaces/ The Seam Booking demo with ICEfaces instead of

AjaxJSF

itext/ A demo of the Seam iText integration for generating pdfs

jee/booking The Seam Booking demo ported to the Java EE

platforms

jee/remoting The Seam remoting helloworld demo ported to the Java EE

platforms

jpa/ An example of the use of JPA (provided by Hibernate) runs

on many platforms including nonEE platforms (including

plain Tomcat)

mail/ The Seam mail example demonstrating use of

faceletsbased email templating

messages/ The Seam message list example demonstrating use

of the @DataModel annotation

nestedbooking/ The booking example modified to show the use of nested

conversations

numberguess/ The Seam number guessing example demonstrating

jBPM pageflow

quartz/ A port of the Seampay example to use the Quartz dispatcher

registration/ A trivial example for the tutorial

remoting/chatroom/ The Seam Chat Room example demostrating Seam

Remoting

remoting/gwt/ An example of using GWT with Seam remoting

remoting/helloworld/ A trivial example using Ajax

remoting/progressbar/ An example of an Ajax progress bar

seambay/ An example of using Seam with Web Services

seamdiscs/ Demonstrates Seam Trinidad Ajaxjsf and Richfaces

seampay/ The Seam Payments demo demonstrating the use of

asynchronous methods

seamspace/ The Seam Spaces demo demonstrating Seam

Security

spring/ Demonstrates Spring framework integration

todo/ The Seam todo list example demonstrating

jBPM business process management

ui/ Demonstrates some Seam JSF controls

wiki/ A fully featured wiki system based on Seam please

read wiki/READMEtxt for installation instructions

推荐几本seam 的好书seam_referencepdf 这是seam自带的一个文档我认为是个很好的文档redsaga里面有国内的jboss的爱好者翻译的文档是Seam__Reference_zh_CNpdf Seam__Reference_zh_CNpdf

Beginning JBoss Seam JBossIDETutorial richfaces_reference seam in action《JSF入门》简体中文版这基本书对学习jsf seam 以及在jboss下的开发都会很有帮助seam是个很好的framework国内现在用的人很少社区讨论也很少可以去国外的forum去看看很热很多用户数量几乎是暴增可能英语是限制国人领悟新技术的瓶颈吧~

上一篇:James安装使用简易指南

下一篇:轻松测试-学习如何简化测试外部资源