Grails v2.2.1 Integration

Download

This open source integration demonstrates Grails application framework integration through a simple phone book sample Web application deployed to Liberty. The application provides the ability to manage phonebook users and work with phonebook entries.

Description

This samples demonstrates Grails application framework integration through a simple phone book Web application deployed to Liberty. The sample provides the ability to manage phonebook users and work with phonebook entries.

This sample can be installed onto runtime versions 8.5.5.0 and later.

Instructions

  1. Install the packaged server by typing ‘java -jar GrailsSample.jar’ and following the instructions.
  2. Start the GrailsSample server by running the command ‘bin/server run GrailsSample’ from the root of the Liberty profile installation, and confirm the application started by looking in the console output:
    CWWKZ0001I: Application PhoneBookByGrails started in XX.XX seconds.
  3. In your browser, enter the URL for the application: http://localhost:9102/PhoneBookByGrails/ (where port 9102 assumes the httpEndpoint provided in the sample server.xml has not been modified).
  4. A list of available controllers is displayed.
  5. Follow the link to the "com.ibm.ws.grails.controller.PhoneBookController", or enter this URL in your browser: http://localhost:9102/PhoneBookByGrails/phoneBook/index (where port 9102 assumes the httpEndpoint provided in the sample server.xml has not been modified).
  6. In your browser, you should see the list of phone books displayed.

Notes

This sample does not include the open source dependencies. The installer will provide a list of the open source pre-requisite libraries and where they can be downloaded from. To help obtaining these libraries, the installer provides the option to download them on your behalf.

Sample Structure

  • wlp
    • usr
      • servers
        • GrailsSample
          • apps
            • PhoneBookByGrails-0.1.war (sample Grails Web application)
          • Copyright.txt (copyright notice for this sample)
          • readme.html (these instructions)
          • server.xml (sample server using Grails shared library)
          • prodDb.h2.db (database used by Grails application)
    • shared
      • apps
      • config
        • GrailsSampleLibs.xml (shared library configuration for Grails)
      • resources
        • GrailsSampleLibs (Grails and pre-requisite libraries – downloadable during installation)