项目作者: abondar24

项目描述 :
Big Java EE Demo
高级语言: Java
项目地址: git://github.com/abondar24/JavaEEDemo.git
创建时间: 2017-11-16T21:05:25Z
项目社区:https://github.com/abondar24/JavaEEDemo

开源协议:

下载


JavaEE Demo

Bunch of demos about JAVA EE.

Each maven module covers different part of J2EE

Demos

  • BasicCDI: core of Context Dependency injection.

    1. Build: mvn clean install
    2. Run: exec:java
  • Bean validataion: constraints and custom validators usage

    1. Build: mvn clean install
  • ORM Demo: JPA and Hibernate usage including(persistence,quering,criteria api,caching,locks and listener usage)

  1. Build: mvn clean install
  2. Run: exec:java
  • EJB Demo: EJB usage examples
  1. Build: mvn clean install
  • JSF Demo: JSF Web application example
  1. Build and deploy: mvn clean install wildfly:deploy
  • Document Demo: XML and Json parsing and transforming demos

    1. Build: mvn clean install
    2. Run: exec:java
  • JMS Demo: Wildfly based jms. For activeMQ related messaging see JMSDemo
    ```yaml
    Build: mvn clean install
    Run Producer: java -jar target/producer.jar
    Run Consumer: java -jar target/consumer.jar

  1. - SOAP Demo: SOAP Webservice demo.
  2. ```yaml
  3. Build and deploy: mvn clean install wildfly:deploy
  • REST Demo: REST Webservice demo.

    1. Build and deploy: mvn clean install wildfly:deploy
  • SerlvetFileDownload: Small example of how to download a file from server using servlet

  • REST Demo: REST Webservice demo.

    1. Build and deploy: mvn clean install wildfly:deploy
  • WildflyDockerDemo: example of building a docker image based on Docker with usage custom configuration of Wildfly. Custom config has additional datasource.

    1. Build: mvn clean install
    2. Run: docker run -d -p 8080:8080 -p 9990:9990 --name <container_name> abondar/wfdocker
    3. Pull from docker-hub: docker pull abondar/wfdocker
  • RichFacesDemo - more JSF features using RichFaces library

  • ThorntailDemo - microservices with Java EE

    External Stuff

  • For ORM demo you need to set up a database with name and credentials from persistence.xml file
    Some parts of demo are run from main, some parts are stored as unit tests

  • EJB ,JSF,SOAP and REST demos are build around Wildfly 11 server. You need to reconfigure them for another servers
  • For JMS Demo you need to create a queue on the server and add jndi name with format java:jboss/exported/queueName.
    Before build change producer and consumer class names on the one you want to use in pom file.
    Also you need a user with credentials from jms.properties file and role “guest”
  • Address for WSDL in SOAP demo: http://localhost:8080/SOAPDemo/CardValidator?wsdl
  • Address for WADL file with description of REST API: http://localhost:8080/restdemo/application.wadl
  • Address for ServletFileDownload: http://localhost:8080/fd/filedownload/