Book description
Over 60 incredibly effective recipes to take you under the hood and leverage advanced concepts of the Play framework
- Make your application more modular, by introducing you to the world of modules.
- Keep your application up and running in production mode, from setup to monitoring it appropriately.
- Integrate play applications into your CI environment
- Keep performance high by using caching
- Learn how to leverage external APIs without letting your application go down on problems
- Use the play framework as a provider for your API systems
- Implement your own authorization mechanisms, and different output formats
In Detail
The Play framework is the new kid on the block of Java frameworks. By breaking with existing standards the play framework tries not to abstract away from HTTP as most web frameworks do, but tightly integrates with it. This means quite a shift for Java programmers. Understanding these concepts behind the play framework and its impact on web development with Java are crucial for fast development of applications.
The Play Framework Cookbook starts where the beginner documentation ends. It shows you how to utilize advanced features of the Play framework – piece by piece and completely outlined with working applications!
The reader will be taken through all layers of the Play Framework and provided with in-depth knowledge from as many examples and applications as possible. Leveraging the most from the Play framework means to think simple again in a java environment. Implement your own renderers, integrate tightly with HTTP, use existing code, improve site performance with caching and integrate with other web services and interfaces. Learn about non-functional issues like modularity or integration into production and testing environments. In order to provide the best learning experience during reading Play Framework Cookbook, almost every example is provided with source code, so you can start immediately to integrate recipes into your own play applications.
Table of contents
-
Play Framework Cookbook
- Table of Contents
- Play Framework Cookbook
- Credits
- Foreword
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Basics of the Play Framework
- Introduction
- Downloading and installing the Play framework
- Creating a new application
- Defining routes as the entry point to your application
- Configuring your application via application.conf
- Defining your own controllers
- Defining your own models
- Using fixtures to provide initial data
- Defining your own views
- Writing your own tags
- Using Java Extensions to format data in your views
- Adding modules to extend your application
- Using Oracle or other databases with Play
- Understanding suspendable requests
- Understanding session management
-
2. Using Controllers
- Introduction
- URL routing using annotation-based configuration
- Basics of caching
- Using HTTP digest authentication
- Generating PDFs in your controllers
- Binding objects using custom binders
- Validating objects using annotations
- Adding annotation-based right checks to your controller
- Rendering JSON output
- Writing your own renderRSS method as controller output
- 3. Leveraging Modules
- 4. Creating and Using APIs
-
5. Introduction to Writing Modules
- Introduction
- Creating and using your own module
- Building a flexible registration module
- Understanding events
- Managing module dependencies
- Using the same model for different applications
- Understanding bytecode enhancement
- Adding private module repositories
- Preprocessing content by integrating stylus
- Integrating Dojo by adding command line options
- 6. Practical Module Examples
-
7. Running in Production
- Introduction
- Test automation with Jenkins
- Test automation with Calimoucho
- Creating a distributed configuration service
- Running jobs in a distributed environment
- Running one Play instance for several hosts
- Forcing SSL for chosen controllers
- Implementing own monitoring points
- Configuring log4j for log rotation
- Integrating with Icinga
- Integrating with Munin
- Setting up the Apache web server with Play
- Setting up the Nginx web server with Play
- Setting up the Lighttpd web server with Play
- Multi-node deployment introduction
- A. Further Information About the Play Framework
- Index
Product information
- Title: Play Framework Cookbook
- Author(s):
- Release date: August 2011
- Publisher(s): Packt Publishing
- ISBN: 9781849515528
You might also like
book
Microservices Development Cookbook
Quickly learn and employ practical methods for developing microservices Key Features Get to grips with microservice …
book
Play Framework Cookbook - Second Edition
Over 60 hands-on recipes to create dynamic and reactive web-based applications with Play 2 In Detail …
book
Hands-On Reactive Programming in Spring 5
Explore the reactive system and create efficient microservices with Spring Boot 2.1 and Spring Cloud Key …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …