Java

Just Released the S3Blobs Play Framework Module for Amazon S3

I’ve just posted the first release of the S3Blobs Play Framework Module. This module makes it easy to upload and download files from Amazon S3 from a JPA entity in a Play Framework Java application. This module is based on a POC that I did a few months ago, the JPA stuff from Tim Kral, and the modularization done by Roderik van der Veer. For more details on how to use the module check out the documentation, my tutorial (slightly out of date now), and the source code.

Heroku JUG Tour: Boulder, Phoenix, & Portland

For the next wave of the Heroku Java User Group Tour I will be speaking about running Java, Play Framework, and Scala apps on the cloud in these three wonderful places: Boulder, Colorado - December 13 Phoenix, Arizona - December 14 Portland, Oregon - December 20 I hope to see you there!

Tutorial: Play Framework, JPA, JSON, jQuery, & Heroku

UPDATE: This tutorial is for Play 1.x (an old version). Check out my Play 2 Tutorial if you want to get started with the latest stuff. (Thanks to John Borys for pointing this out.) If you are a Java developer then you really need to give Play Framework a try. It is really refreshing to take a few minutes, step out of the legacy-feeling world of traditional Java web app development and into something modern and fun.

Using MongoDB for a Java Web App’s HttpSession

Since the web’s inception we’ve been using it as a glorified green screen. In this model all web application interactions and the state associated with those interactions, is handled by the server. This model is a real pain to scale. Luckily the model is shifting to more of a Client/Server approach where the UI state moves to the client (where it should be). But for many of today’s applications we still have to deal with server-side state.

Heroku Preso from Devoxx 2011

As expected… Devoxx 2011 rocked! Such a fun conference with top notch sessions and people. I presented a session on how to deploy Java, Play Framework, and Scala apps on Heroku. Matt Raible did a great (and very thorough) write-up on my session. Thanks Matt! Here are my slides: There was also some hot news at Devoxx… Play Framework 2 is the official web framework in the Typesafe Stack! And Heroku already supports Play 2!

Using Apache Tomcat on Heroku

One great thing about Heroku is the freedom to use any APIs and any application server. On Heroku you bring your application server with you. The easiest way to do this is by specifying your app server as a dependency of your application. This allows for maximum control and avoids the pain associated with developer and production environments using different versions of the container. Most of the articles that have been written about running Java on Heroku use embedded Jetty since it’s lightweight and easy to specify as a dependency.

Heroku at Devoxx 2011

Devoxx is one of my favorite conferences of the year so I’m lucky to be presenting there again this year. This Thursday at noon I’ll be presenting about Heroku and how to deploy Java, Play Framework, and Scala apps on the cloud. Hopefully see you there!