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.
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 22.214.171.124 and later.
- Install the packaged server by typing ‘java -jar GrailsSample.jar’ and following the instructions.
- 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.
- 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).
- A list of available controllers is displayed.
- 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).
- In your browser, you should see the list of phone books displayed.
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.
- 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)
- GrailsSampleLibs.xml (shared library configuration for Grails)
- GrailsSampleLibs (Grails and pre-requisite libraries – downloadable during installation)