DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Deploying Play Framework 2 apps, with Java AND Scala, to Openshift

Deploying Play Framework 2 apps, with Java AND Scala, to Openshift

Sebastián Open user avatar by
Sebastián Open
·
May. 21, 12 · Java Zone · News
Like (0)
Save
Tweet
5.25K Views

Join the DZone community and get the full member experience.

Join For Free

Let's Play! in the cloud

A couple of weeks ago, Mark Atwood, Jorge Aliss, and I, Sebastián Scarano participated in Red Hat's webinar LET'S PLAY! IN THE CLOUD: DEVELOPING JAVA WEB APPS ON OPENSHIFT

 In the webinar Mark gave a neat introduction to Openshift, Red Hat's free Platform as a Service (click on the image to see video):



 

Then we developed a basic contact manager web application, combining Java and Scala source code in the same Play 2 application, and deployed it on Openshift (click on the image to see video).

Click on image to watrch video

 

With this quickstart (https://github.com/opensas/play2-openshift-quickstart) you'll be able to take any Play 2 application and deploy it on openshift. Just follow this instructions. And here (https://github.com/opensas/play2-contacts-demo) you will find the contact demo app. In the demo, in spite our internet connection conspiring against us, we managed to cover the following topics:

  • Creating a new play 2 application
  • Basic application structure
  • Configuring your IDE to work with a Play application
  • Routes
  • Controllers
  • Templates
  • Models
  • Persisting your data to an in-memory database with Ebean
  • Adding Validations
  • Working with Scala Templates
  • Mixing Java and Scala source code in the same application
  • Integrating twitter bootstrap
  • Customizing your app cofiguration for running on Openshift
  • Persisting your data to a file database when running on Openshift
  • And finally, deploying your application on Openshift

You can also check this article in which we explain in detail how we took advantage of the new "do-it-yourself" application type on Openshift to achieve native support for Play Framework application on Openshift. So, if you want to start deploying your play apps on openshift right away, just sign up at openshift.com and enter PLAY!WEBINAR as promotional code, and you'll get 3 gears, each with 1GB ram and 512 MB data space, for free.

Have fun playing on the cloud!

OpenShift app Play Framework Scala (programming language) Java (programming language) application Framework

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Hash, Salt, and Verify Passwords in NodeJS, Python, Golang, and Java
  • Making Your SSR Sites 42x Faster With Redis Cache
  • How to Leverage Method Chaining To Add Smart Message Routing in Java
  • How to Upload/Download a File To and From the Server

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo