Giter VIP home page Giter VIP logo

generic-jee-archetype's Introduction

generic-jee-archetype

Simple projet, posposition de structure Maven permettant le multipackaging d'applications JEE

#pré-requis: Maven 3.1 ou supérieur.
JDK 1.7 ou supérieur.

Build

  • Téléchargez le projet.
  • Dans le répertoire racine, faites un :
    mvn clean install

L'application

une simple application permettant d'effectuer des opérations CRUD sur l'entité Person via des appels Rest.

un client angular permettant de la tester est disponible à cette adresse : http://plnkr.co/edit/rUcZDl04VALMbSgknLPl?p=preview

Business packages

  • business-entities : JPA entities and DAO.
  • Service : CDI injectable trasactional services
  • tools : Simple helper and tools classes.
  • rest-api: JAX-RS exposed Rest Endpoint
  • persistence : persistence.xml file for jpa entities

Deployable packages

  • wildfly-package : deployable war on wildfly
  • springboot-package : deployagle springboot app
  • tomcat-package : deployable war on tomcat 8

L'objectif

Structurer les imports des projets afin de restreindre l'utilisation des frameworks aux standards JEE et réduire l'adhérence du code à des librairies tierces. les package metiers ont pour seul dépendance javaee les packages (wildfly-package et springboot-package) peuvent étendre les dépendances du parent avec des libs liés à leurs environnement de déploiement, ces derniers ne doivent contenir aucune intelligence, pas de code fonctionnel.

L'application utilise les standards suivants:

  • JPA(Java Persistence) JSR-338
  • JAX-RS 2.0 (Java API for RESTful Web Services) JSR 339
  • CDI (Contexts and Dependency Injection) JSR 346
  • JTA : (JavaTM Transaction API) JSR 907

Wildly

  • JPA : Hibernate.
  • JAX-RS : RestEasy
  • CDI : WELD
  • Jta :

Tester la version Wildfly :

Pas besoin d'installer wildfly maven le fera pour vous.

  • cd generic-jee-archetype
  • mvn clean install
  • cd wildfly-package
  • mvn wildfly:run -Dwildfly.version=8.2.0.Final

Spring-boot

  • JAX-RS : Jersey
  • JTA : Atomikos
  • JPA : Spring-data
  • CDI : HK2

Tester la version SpringBoot

  • Téléchagez le projet
  • cd generic-jee-archetype
  • mvn clean install
  • cd springboot-package
  • mvn clean install
  • mvn spring-boot:run

Tomcat

  • JAX-RS : Jersey
  • JTA : Atomikos
  • JPA : Hibernate
  • CDI : HK2

Tester la version SpringBoot

  • Téléchagez le projet
  • cd generic-jee-archetype
  • mvn clean install
  • cd tomcat-package
  • mvn clean install
  • mvn tomcat7:run-war

generic-jee-archetype's People

Contributors

alizarion avatar eridann avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.