Learn More about Heroku for Java
Last updated 15 November 2017
Table of Contents
- Deploy a Java web application with an embedded container
- Run Java worker processes on Heroku
- Connecting to relational databases on Heroku with Java
- Deploy a Spring and Hibernate app
- Working with Heroku addons
- Run Play! Framework apps on Heroku
- Connect a Play! app to a Heroku Postgres database
- Run Grails framework apps on Heroku
- Performance management on Heroku using New Relic add-on
- If you still have questions
With Heroku you can instantly deploy and scale any of your Java application on the cloud. This developer guide will walk you through a series of articles to help you understand how to build and deploy Java applications on Heroku.
If you would like to understand how the Heroku Platform works, read the Heroku Platform Architecture. You can also read the Heroku Java Support and Heroku for Java EE developers articles for information about Java language support and some key design principles to keeping mind when building and deploying Java applications on Heroku.
Deploy a Java web application with an embedded container
You can use any embedded container that you like in your application on Heroku. Learn how to use Maven as the build tool and Jetty as the embedded container.
Other embedded containers
Run Java worker processes on Heroku
An application on Heroku is composed of one or more processes. This can include a web process and one or more non-web processes to perform background or admin tasks. Learn how to build and deploy worker and one-off admin applications in Java.
Connecting to relational databases on Heroku with Java
Applications on Heroku can use a variety of relational database services including the Postgres database offered by Heroku and MySQL offered by AWS. You can connect your Java application to relational databases using plain JDBC or within a Spring application or within a Play! application.
Deploy a Spring and Hibernate app
If you are a Spring developer you can get started building and deploying Spring MVC applications.
Working with Heroku addons
Heroku provides a rich selection of addons. You can install these to provide additional application services like Performance Management, Log monitoring, NoSQL databases etc. Below are a few articles to get you started on some of these addons:
Run Play! Framework apps on Heroku
Heroku has direct support for running Java and Scala applications built with the Play Framework. Learn how to build a simple Play web application and deploy it to Heroku.
Connect a Play! app to a Heroku Postgres database
Using environment variables in your Play! config makes it easy to connect a Play! app to the Postgres database that is automatically created for each application created on Heroku.
Run Grails framework apps on Heroku
Heroku supports the Grails framework as well. Learn how to deploy a Grails application to Heroku.
Performance management on Heroku using New Relic add-on
Monitoring is an important part of any aplication. The New Relic add-on for Heroku can help with your application performance management needs in the cloud.