Ok

En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies. Ces derniers assurent le bon fonctionnement de nos services. En savoir plus.

  • Red Hat Fuse 7.1 – Using JPA providers on Karaf platforms

    JPA (Java Persistence API) is a major part of the Java EE specifications. Its utilization on Java EE servers, like Wildfly, JBoss EAP or Red Hat Fuse on JBoss EAP, became one of the most common persistence solutions. However, on OSGi platforms, like Apache Karaf or Red Hat Fuse on Apache Karaf, it was quite difficult until recently to use JPA providers like OpenJPA or Hibernate. With Red Hat Fuse 7.1 and Karaf 4.2 there is no more any reason to not choose JPA as your application persistence solution. This article shows how and gives you a consistent approach, as well as a reliable template, of developing OSGi applications, using Hiberante as a JPA provider, with Red Hat Fuse on Apache Karaf platforms. For illustration purposes, I’ll be using a sample application, named customer-manager which, as its name implies, handles customers and implements its associated CRUD (Create, Read, Update, delete) API. The code may be found here: https://github.com/nicolasduminil/Red-Hat-Fuse-7.1

    Lire la suite