Ec14172720d072d09bc2d4c015103180?s=300

Un petit coup de Maven, trois annotations Java et un repo git plus tard: Voici comment faire tourner vos Web services Apache CXF sur le PaaS Heroku.

One more Apache CXF and Heroku article to push Web services to the Java PaaS… In some previous articles I explained how to create JAXWS and JAXRS service by cloning/forking/whatever git repositories. This time it is almost the same but I created a maven archetype to generate tons of maven modules quickly and to integrate them in your maven-based projects (OK cloning a repository is faster, it does not download the entire Internet as Maven does…).

Let’s do it with a screen record to check how fast it is. With my poor Internet connection and some typos, I have something running on Heroku in less than 2 min 30…

http://youtu.be/quuk-eIpnO8?hd=1

Here are the commands used in the sample above:

https://gist.github.com/3053446

The archetype source code is located at https://github.com/petalslink/petalscloud-maven-archetypes and deployed on OW2 repository. Once the project is generated from the archetype, one can add his own JAXWS-annotated services and associated Spring configuration (src/main/webapp/WEB-INF/beans.xml). Generated project is also available on github at https://github.com/chamerlingdotorg/maven-heroku-jaxws-sample.

Can it really be more easy?

Contributeur

Christophe Hamerling
Software Addict!

Commentaires

Vous devez vous inscrire ou vous connecter pour poster un commentaire