DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Demo Application Using JSF, JPA, CDI with Jetty

Demo Application Using JSF, JPA, CDI with Jetty

Andy Gibson user avatar by
Andy Gibson
·
Aug. 25, 10 · Java Zone · Interview
Like (0)
Save
Tweet
8.68K Views

Join the DZone community and get the full member experience.

Join For Free

the previous version of the knappsack maven archetypes included archetypes for creating projects using jsf, jpa, cdi and bean validation that can run in a servlet container such as jetty or tomcat. in order to put it through its paces i decided to create a little test social bookmarking application that lets users create accounts, and when logged in, add bookmarks and tag them. users that are not logged in can view the bookmarks and filter them by user or tag, and the results are paginated.

the demo application is now included in the latest version of the knappsack archetypes (1.0.5) which are in the central repository. the gav information is :

<groupid>org.fluttercode.knappsack</groupid>
<artifactid>jee6-servlet-demo-archetype</artifactid>
<version>1.0.5</version>

or you can just create a new application from the command line with :

mvn archetype:generate -darchetypegroupid=org.fluttercode.knappsack -darchetypeartifactid=jee6-servlet-demo-archetype 
-dinteractivemode=false -darchetypeversion=1.0.5 -dgroupid=org.application -dartifactid=bookmarxrus -dpackage=org.application

this lets you create a new instance of the demo application from the archetype so you can play with it (and break it!).

alternatively, if you just want to poke around, you can just download the projects maven source from here ( bookmarking java ee 6 servlet demo ) , unzip it and use mvn jetty:run to start the app with the embedded jetty instance and go to http://localhost:8080/bookmarxrus/ .

the demo comes with pre-built data and a list of users, tags and urls to get started with.

bookmark application screenshot

from http://www.andygibson.net/blog/news/demo-application-using-jsf-jpa-cdi-with-jetty/

application CDI Jetty (web server)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Modernize Legacy Code in Production: Rebuild Your Airplane Midflight Without Crashing
  • Top Soft Skills to Identify a Great Software Engineer
  • Ultra-Fast Microservices: When Microstream Meets Payara
  • Product Owner Anti-Patterns

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo