JBoss Wildfly - Pooky/java-enterprise-examples GitHub Wiki

Wildfly (older name Jboss) is Java EE implementation of fully complaint Application Server.

Main points:

  • Developed by RedHat
  • Open Source
  • Uses undertow as web container
  • Implements WELD as CDI injection solution
  • Implements JAX-RS as RestEasy (already provided in the contianer).

There are other alternatives like WebSphere and GlassFish.

WELD

Context and Dependency Injection implementation from JBOSS

Only in injected objects will have its dependencies injected. If you create an object with new all field having @inject, @ejb or @resource will not be injected.

Vaadin uses special @CDIUI

Hibernate and persistance JTA - Java Transaction Anotation and Resource Local. JTA is managed by container. Get EM by dependency injection.

JAX-WS (JAX WEBSERVICE)

Quote from java specification what JAX-WS mean:

Java™ API for RESTful Web Services (JAX-RS) delivers API for RESTful Web Services development in Java SE and Java EE.

In human language, it's some specification how should java communicate with REST (REpresentational State Transfer) e.q. without state as most of HTTP pages currently uses.

Use full links for JAX-WS:

JAX-WS is only definition and Wildfly need to implement it, for that use real library named RestEasy.

Snippets

mvn wildfly:deploy