Seam 3.1.0 Final知识摘抄及范例运行步骤

############
Seam 3.1.0.Final
\seam-3.1.0.Final\doc\reference\pdf\bundled_master.pdf
############
2.2. Seam Bill of Materials

The Seam 3 build is based on Maven 3. Each Seam module is a separate project, with its own release cycle.
To keep the modules in sync, the Seam project publishes a special Maven POM known as a "Bill of Materials" (BOM), which we'll refer to as the Seam BOM.

You can import these version definitions into your project by adding the Seam BOM as a dependency with scope import.
you can upgrade all your Seam modules at once by just updating the version of the BOM.

To see which version is going to get selected, use the dependency analysis tools in Maven:
  mvn dependency:tree

Part I. Solder

Solder is a library of Generally Useful Stuff (TM),


http://seamframework.org/Home/WhySeam

Seam grew out of the Hibernate community, and was designed and implemented by the people who created Hibernate,
the same people who coined the term persistence context.

Seam is founded upon open source implementations of open standards like JSF and EJB 3.0,
along with open source innovators like Hibernate, jBPM, Facelets, Drools, ICEfaces and Ajax4JSF.


http://seamframework.org/Seam3

Seam3 is a collection of modules and developer tooling tailored for Java EE 6 application development, with CDI as the central piece.


Steps to run example: seam-booking

1. download seam-3.1.0.Final.zip from http://seamframework.org/Seam3/Downloads . extract zip file to seam-3.1.0.Final folder.

2. As per readme, goes to \seam-3.1.0.Final\examples\seam-booking\ and execute below maven command:
  mvn clean package arquillian:run -Darquillian=jbossas-managed-7
  Note: you may get some errors get see build failure information, it's normal, just ignore it.

3. start Eclipse and import seam-booking as a maven project.

4. right click "pom.xml" and choose "run as" -> "7 Maven package". (here you will see build successful information.)

5. startup JBoss AS 7, copy seam-booking.war and drop it to \jboss-as-7.0.2.Final\standalone\deployments\

6. open browser and navigate to http://localhost:8080/seam-booking/ and you will see a homepage of hotel booking application.

7. try register one new account and login...

posted @ 2012-04-08 19:37  万法自然~  阅读(234)  评论(0)    收藏  举报