Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JAXRS sample using CXF and running on Heroku

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 pom.xml
README.md

heroku-cxf-jaxrs

A JAXRS sample using Apache CXF 2.5.0 and running on Heroku platform.

Deploy

  1. Create an heroku.com account, download heroku client for your distribution, RTFM...
  2. From the shell, login to Heroku : 'heroku auth:login'
  3. Clone me then cd to cloned repository
  4. Create the app on heroku : 'heroku create -s cedar'
  5. Push the app to heroku : 'git push heroku master'
  6. Open the new app : 'heroku open'

Use

I put some sample on how to use JAXRS in different situations with different needs: Check the code for details (org.chamerling.heroku.service.rest.SampleService). The list method shows a way to return JSON array using JAXB annotated classes, there are other solutions but this one is not so bad...

Useful URLs:

You can check a running instance at http://severe-spring-2425.herokuapp.com/

Something went wrong with that request. Please try again.