Glassfish comes bundled with JBoss Weld 1.1.8.Final as the default CDI implementation. As with JBoss AS7, we have the choice of using the version that is there already or upgrading to the latest version.
If we don't already have Glassfish installed, download the latest release from http://glassfish.java.net/public/downloadsindex.html#top and either run the installation program or extract the contents of the ZIP, depending on our operating system and which installation format we chose. We will refer to the location where we installed Glassfish as GLASSFISH_HOME
.
Note
At the time of publication, the most recent download for Glassfish was 3.1.2.2 and is available at http://glassfish.java.net/downloads/3.1.2.2-final.html.
As Glassfish uses OSGI bundles for the various pieces that make up the entire server environment, the download of JBoss Weld from earlier does not contain an appropriate JAR that we can use as a replacement for the server.