Sunday, July 10, 2011

Seam3 Project Archetype

The jboss-javaee6-webapp archetype from org.jboss.spec.archetypes has a lot of goodies in it.  There is 

  1. JSF 2.0
  2. Restful Services
  3. CDI 1.x
  4. EJB 3.1
  5. JPA 2.0
  6. Bean Validation
  7. Arquillian Tests
I created a project from the archetype in eclipse 3.7 with jboss tools 3.3, built and deployed to jboss 7 in under 15 minutes.  With JBoss tools you get code insight when editing the ui pages.  So when you type #{ in an xhtml, the annotated beans are reviewed for matching candidates. Once you select a bean, the available methods are displayed.   Just like working with the java code.  

Some of the other JEE features sprinkled thruout the example are event fire and observe techniques.  Also @Producers (think factory) and @Named beans.  And bean validators, which is just plain cool to me.  Think of it, the same validation that you use on the entities can be used directly by the UI.  One set of rules....  very dry.

So if you're interested in fast approach to java web development, try out eclipse, jboss tools and this archetype and I think you'll be up and running in no time.


No comments:

Post a Comment