4.4. Create the TicketMonster Project

4.4.1. Obtain the Project Source Code

The TicketMonster example source code is provided as a .zip file on the Red Hat Customer Portal. This procedure guides you through downloading this .zip file and extracting the contents ready for use with JBoss Developer Studio. The TicketMonster source code can also be downloaded from the JBoss Developer website.

Procedure 4.1. Obtain the Project Source Code

  1. Log into the Red Hat Customer Portal at http://access.redhat.com.
  2. Locate the downloads for this release version of JBoss Web Framework Kit.
  3. Download the .zip file for Red Hat JBoss Web Framework Kit TicketMonster Demo.
  4. Extract the contents of the downloaded .zip file to the location where you want to keep the TicketMonster source code.

4.4.2. Import the Project Source Code

Once the TicketMonster source code is obtained and unpackaged, you must import it into JBoss Developer Studio, as detailed in the procedure below. TicketMonster is a Maven-based project so a specific Import Maven Project wizard is used for the import.

Procedure 4.2. Import the Project Source Code

  1. Click FileImport to open the Import wizard.
  2. Expand Maven, select Existing Maven Projects and click Next.
  3. In the Root Directory field, enter the path to the TicketMonster source code. Alternatively, click Browse to navigate to the source code location. The Import Maven Project wizard recursively searches the path for a pom.xml file. The pom.xml file identifies the project as a Maven project. The file is listed under Projects once it is found.
    Description

    Figure 4.1. pom.xml File Listed in the Projects Pane

  4. Click Finish. When the import process is complete, the project is listed in the Project Explorer view.