Demo Application Using JSF, JPA, CDI with Jetty
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
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 :
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.
Opinions expressed by DZone contributors are their own.