Java

Webinar: Social Enterprise Java Apps on Heroku

Tomorrow, May 30th, I will be co-hosting a webinar about Social Enterprise Java Apps on Heroku. The webinar will be at both 2:00 p.m. GMT and 10:00 a.m. PDT. Register at: http://www.developerforce.com/events/webinars/2012-05-30/registration.php?d=70130000000sW7g Here is the description: In this webinar you will learn how to build Social Enterprise applications using Salesforce.com, Heroku, and Java. Through live coding and demonstrations you will learn how to instantly deploy and scale Java apps on the cloud with Heroku.

Play 2 Java Tutorial

Update: This tutorial is a bit old. For more up-to-date tutorials see: https://www.playframework.com/documentation/2.3.x/Tutorials I’ve created a Play 2 Tutorial and posted it on GitHub! The tutorial covers how to: Create a Play App Set up an IDE Start the Play Server Routes Test a Route Update a Controller Test a Controller Update a View Test a View Deploy your app on the Cloud with Heroku Create a Model Create UI for Adding Tasks Get Tasks as JSON Display the Tasks via CoffeeScript and jQuery Make the App Pretty with Twitter Bootstrap Add Form Validation Update the App on Heroku Each section has a corresponding branch in git so you can diff against my version to see if you’ve done everything correctly.

Heroku, Java, Play and Neo4j Presos: Denver JUG, Atlanta JUG, London Flash UG & Webinar

Over the next couple weeks I’ll be doing two Java User Group presentations, a Flash Platform User Group presentation and one Webinar. Hope to see you at one of these events: Wednesday May 9 - Denver Java User Group: Running Java, Play! and Scala Apps in the Cloud Thursday May 10 - Webinar hosted by Neo4j: Graphs in the Cloud: Neo4j and Heroku Tuesday May 15 - Atlanta Java User Group:

WebJars in Spring MVC

Last week I announced the WebJars project that allows you to specify your web libraries (JavaScript, CSS, etc) as dependencies in your Java web applications. With some help from Jeremy Grelle I was able to get a simple WebJars Spring MVC example working. First you will need to add the WebJars repository to your build. For Maven, just add the following to your “pom.xml” build file: <repositories> <repository> <id>webjars</id> <url>http://webjars.github.com/m2</url> </repository> </repositories> Then add a WebJar dependency, like Twitter Bootstrap:

Introducing WebJars – Web Libraries as Managed Dependencies

Update: I’ve created a Spring MVC WebJars example. Update 2: Ukrainian translation here - http://softdroid.net/vvedennya-webjars by Eclipse Android. Update 3: WebJars.org has been officially launched! Learn more. Our web apps are using more and more web libraries like jQuery, Backbone.js and Twitter Bootstrap. The traditional way to use those libraries is to locate & download the JavaScript and CSS source then just copy it into a project. To me this resembles how we used to just copy JAR files into a project’s WEB-INF/lib dir.

Play Framework 2 & HTML5 on Heroku at Philly ETE and Devoxx Paris

Over the next few weeks I’ll be doing a few presentations about Java, Scala, Play Framework 2, HTML5, and Heroku: Wednesday April 11 @ 11:30am - Emerging Technologies for the Enterprise (Philedephia, PA) - HTML5 Apps in Java & Scala with the Play Framework Wednesday April 18 @ 13:30 - Devoxx (Paris, France) - Developing, Deploying and Scaling in the Cloud with Play Thursday April 19 @ 14:30 - Devoxx (Paris, France) - Client/Server Apps with HTML5 and Java

Java on Heroku at NH JUG and DevNexus 2012

This week I’ll will be doing a few presentations about running Java and Play apps on Heroku: Portsmouth, NH on Tuesday March 20 @ 6:30pm - Running Java, Play! and Scala Apps on the Cloud DevNexus in Atlanta, GA on Wednesday March 21 @ 2:30pm - Introduction to Heroku DevNexus in Atlanta, GA on Thursday March 22 @ 2:30pm - Intro to Play Framework Hope to see you there!

Screencast: Java Template Apps on Heroku

Today Heroku launched a new way to get started deploying Java apps on the cloud. There are four different template apps you can start with including a Spring + Hibernate + Tomcat app, a Containerless Jetty app, a Play! app, and a JAX-RS app. Pick a template and with a few clicks a copy of the template will be deployed on Heroku - just for you! Get started at:heroku.com/java Here is a screencast that walks through the steps to deploy a new Java template app on Heroku, then setup SSH authentication (for pulling and pushing code with git), pull the code into Eclipse, make a change, and push the changes back to Heroku.