JBoss Seam Lab #1 (Seam DVD Store Example Application)
Overview
After downloading JBoss Seam, the best way to get started is to take one of
the pre-packaged sample applications for a spin. The DVD Store application is
the most noteworthy example, because it leverages EJB3, Facelets, jBPM (for
page flow and BPM), and Seam. This lab we will install Seam, deploy/run and
edit/re-deploy the DVD store application.
Lab Instructions
- Deploy DVD Store to JBoss Application Server
- type: cd @seamHome@
- type: seam deploy-example (Specify "dvdstore" as the example name)
- Step through DVD Store application
- Open a second command shell/window
- type: cd @jbossHome@@sep@bin@sep@
- type: ./run.sh(linux/unix) or run(windows)
- Go to: http://localhost:8080/seam-dvd
- Login as user1
- Add a few DVDs to your cart, then checkout
- Login as manager
- Process the dvd order that user1 submitted
- EXTRA CREDIT (Edit and redeploy the DVD Store Application)
- NO CHEAT:
- Change the DVD store page template title header from: "JBoss Seam
DVD Store" to "My DVD Store"
- HINT: you will need to edit template.xhtml
- CHEAT:
- Open Seam command shell/window
- type: seam labs-cheat (Specify "1" as the lab cheat you want to apply)
- type: seam deploy-example (Specify "dvdstore" as the example name)
- Go to: http://localhost:8080/seam-dvd
- type: seam undeploy-example (Specify "dvdstore" as the example name. Will undeploy the Seam example EAR)
Key Files
@seamHome@@sep@examples@sep@dvdstore@sep@web@sep@WEB-INF@sep@template.xhtml
Home | Next