coffeebean.loicdescotte.com
Coffee Bean: Java EE 7 : Bonne nouvelle?
http://coffeebean.loicdescotte.com/2013/10/java-ee-7-bonne-nouvelle.html
Mercredi 2 octobre 2013. Java EE 7 : Bonne nouvelle? Oracle a présenté en Juin la version finale de Java EE 7, et on peut déjà l'utiliser avec Glassfish 4. Cela fait très longtemps que je n'ai pas parlé de Java EE (ou de Spring) sur ce blog. En effet d'autres technologies bien plus innovantes ont fait leur apparition sur la JVM côté serveur depuis quelques années. Cependant je vous propose aujourd'hui un petit billet d'humeur sur cette nouvelle spécification. Elles permettent d'ouvrir une connexion bilat...
coffeebean.loicdescotte.com
Coffee Bean: Spring Data JPA et Querydsl
http://coffeebean.loicdescotte.com/2011/05/spring-data-jpa-et-querydsl.html
Samedi 28 mai 2011. Spring Data JPA et Querydsl. SpringSource a récemment lancé le projet Spring-Data, un ensemble de sous projets ayant pour but de nous aider à manipuler plus facilement nos données. Nous allons nous attarder sur Spring-Data-JPA, qui fournit un ensemble d'automatisations pour JPA. Les repositories sont des interfaces pour lesquelles nous n'avons pas à fournir d'implémentation. Ces interfaces seront implémentées par le framework lui même au démarrage du contexte Spring. Si on veut écrire...
coffeebean.loicdescotte.com
Coffee Bean: How to export objects as JSON with Play framework
http://coffeebean.loicdescotte.com/2011/01/how-to-export-objects-to-json-with-play.html
Mercredi 19 janvier 2011. How to export objects as JSON with Play framework. With Play, it is extremely easy to create a REST service that exposes some model objects in JSON format. If we write this line in the routes file :. GET /albums.json Application.listAlbumsInJson. And this method in the controller :. Public static void listAlbumsInJson(){ List Album albums = Album.findAll(); renderJSON(albums); }. I discovered on zengularity.com. GET /albums.{ json xml format} Application.listAlbums. How to write...
coffeebean.loicdescotte.com
Coffee Bean: A Typesafe Activator plugin for Play-Slick
http://coffeebean.loicdescotte.com/2014/04/a-typesafe-activator-plugin-for-play.html
Mercredi 16 avril 2014. A Typesafe Activator plugin for Play-Slick. Typesafe Activator is a very cool tool to bootstrap applications built with the Typesafe stack (Scala, Play, Akka.). I've just published an activator template for play-slick : https:/ typesafe.com/activator/template/play-slick-quickstart. Slick is the default library for databases access in the Typesafe stack. This template may help you integrate Play Framework and Slick to create a new Web application or a JSON API. Tweets by @loic d.
coffeebean.loicdescotte.com
Coffee Bean: Simple dependency injection with Play, without DI framework
http://coffeebean.loicdescotte.com/2014/06/simple-dependency-injection-with-play.html
Dimanche 1 juin 2014. Simple dependency injection with Play, without DI framework. There are many ways to setup dependency injection in a Play Framework project. In this post, we will see two ways to achieve this as simply as we can, without using a DI framework. Let’s try to describe our problem :. All the code from the following examples can be found on github : http:/ github.com/loicdescotte/playSimpleDI. The Piece of Cake Pattern. The first solution is to define a. Http:/ api.duckduckgo.com/? This ma...
coffeebean.loicdescotte.com
Coffee Bean: How to monitor a Play Framework app in production
http://coffeebean.loicdescotte.com/2014/01/how-to-monitor-play-framework-app-in.html
Lundi 13 janvier 2014. How to monitor a Play Framework app in production. Today, we will try to explain how to monitor a play application with Metrics and JMX. Is a Play plugin for the Metrics. This plugin provides a lot of information about requests (count, response time, requests/second, errors…) and JVM (CPU, memory.). To install it, add metrics-play dependency in your Build.scala or build.sbt file :. Then add this line to conf/play.plugins. Let’s define a Global object using this filter :. Domain=${r...
coffeebean.loicdescotte.com
Coffee Bean: How to write a REST/XML API with Play framework
http://coffeebean.loicdescotte.com/2010/05/how-to-write-restxml-api-with-play.html
Lundi 17 mai 2010. How to write a REST/XML API with Play framework. This is the english version of my post about REST/XML and Play! Framework, for the planet 3 play! Read this post in french : part 1. Today we will see how to simply expose a REST/XML (or JSON, or another format) API with the Play! Are RESTful in essence, so it becomes very easy to create a small REST API / XML beside the Web interface of Play! Let's see how to do it. The Album class looks like this:. Genre is a simple Enum defined as:.
coffeebean.loicdescotte.com
Coffee Bean: Nouveautés JPA 2 : Gestion des collections
http://coffeebean.loicdescotte.com/2009/09/nouveautes-jpa-20-gestion-des.html
Mercredi 16 septembre 2009. Nouveautés JPA 2 : Gestion des collections. Vous connaissez certainement JPA, l'api de persistence des objets Java introduite avec Java EE 5. Avec l'arrivée de la norme JEE 6, JPA dévoile sa version 2.0. Nous allons voir ensemble les nouveautés apportées par cette nouvelle version. Pour ceux qui ne sont pas encore familiarisés avec JPA 1er du nom, je vous conseille la lecture de ce tutoriel. Cette annotation s'utilise comme ceci :. Enfin, l'annotation CollectionTable permet de...
coffeebean.loicdescotte.com
Coffee Bean: The blog is moving
http://coffeebean.loicdescotte.com/2014/08/the-blog-is-moving.html
Jeudi 21 août 2014. The blog is moving. This is the last article I'll publish on coffeebean.loicdescotte.com. After more than 5 years and 121 posts, I'm moving my blog on Github Pages. The URL of the new blog is http:/ loicdescotte.github.io/. I hope I'll see you soon on my new blog :). Afficher mon profil complet. Tweets by @loic d. S’abonner à Coffee Bean. Rechercher dans ce blog. Articles les plus consultés. How to write a REST/XML API with Play framework. Framework, for the planet 3 play! Aujourdhui ...
SOCIAL ENGAGEMENT