Following the DF12 session that walks us through building a Java Spring app on Heroku that talks to
JavaScript Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Spring MVC Template for Salesforce

I wrote up notes from a Dreamforce 12 session about setting up a Java Spring app that runs on Heroku and talks to a Salesforce org. I wanted to share the code that was generated from this session, so you can reference it from my notes.

Here are some screenshots of what the very cool Eclipse Heroku Plugin looks like.

New Heroku Project Templates

Heroku Environment Variables

Heroku Plugin App Info

This is a template for a Spring MVC web application to work with data from Salesforce. The sample code is a dynamic CRUD application that allows users to create, read, edit, and delete any Salesforce object. It is backed by the Rich SObjects library for interactions with Salesforce.

Getting Started

  1. Clone Now
  2. Setup your OAuth Remote Access. You will then have a OAuth client key and secret
  3. Update the Environment variables to include the OAuth client key and secret
  4. Navigate to the "contacts" page and you should now be authenticated against salesforce and view/create/update/delete contacts