https://github.com/spearheadone/javaeedemo
Big Java EE Demo
https://github.com/spearheadone/javaeedemo
demo ejb hibernate java javaee8 jms jsf rest soap
Last synced: 20 days ago
JSON representation
Big Java EE Demo
- Host: GitHub
- URL: https://github.com/spearheadone/javaeedemo
- Owner: spearheadOne
- Created: 2017-11-16T21:05:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T10:24:03.000Z (almost 4 years ago)
- Last Synced: 2025-02-18T00:23:04.993Z (12 months ago)
- Topics: demo, ejb, hibernate, java, javaee8, jms, jsf, rest, soap
- Language: Java
- Homepage:
- Size: 317 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaEE Demo
Bunch of demos about JAVA EE.
Each maven module covers different part of J2EE
# Demos
- BasicCDI: core of Context Dependency injection.
```yaml
Build: mvn clean install
Run: exec:java
```
- Bean validataion: constraints and custom validators usage
```yaml
Build: mvn clean install
```
- ORM Demo: JPA and Hibernate usage including(persistence,quering,criteria api,caching,locks and listener usage)
```yaml
Build: mvn clean install
Run: exec:java
```
- EJB Demo: EJB usage examples
```yaml
Build: mvn clean install
```
- JSF Demo: JSF Web application example
```yaml
Build and deploy: mvn clean install wildfly:deploy
```
- Document Demo: XML and Json parsing and transforming demos
```yaml
Build: mvn clean install
Run: exec:java
```
- JMS Demo: Wildfly based jms. For activeMQ related messaging see [JMSDemo](https://github.com/abondar24/JMSDemo)
```yaml
Build: mvn clean install
Run Producer: java -jar target/producer.jar
Run Consumer: java -jar target/consumer.jar
```
- SOAP Demo: SOAP Webservice demo.
```yaml
Build and deploy: mvn clean install wildfly:deploy
```
- REST Demo: REST Webservice demo.
```yaml
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.
```yaml
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.
```yaml
Build: mvn clean install
Run: docker run -d -p 8080:8080 -p 9990:9990 --name abondar/wfdocker
Pull from docker-hub: docker pull abondar/wfdocker
```
- [RichFacesDemo](RichfacesDemo/README.md) - more JSF features using RichFaces library
- [ThorntailDemo](ThorntailDemo/README.MD) - 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/