- Weld-CDI
- RestEasy
- JPA/Hibernate
- PostgreSQL
- Tomcat
- Docker
cd config
docker-compose up -d
- Run jdbc.stream.demo.GenerateDataSqlTest to generate data.sql, this sql will be placed in src/main/resources/META-INF/sql
- Start the application using IDEA to insert data into the database
- Stop the application
- Comment out the last four properties of persistence.xml
- set JVM options. IDEA > Run > Edit Configurations > VM options
-Xms50m -Xmx50m
- Start the application using IDEA agian
- Use curl to test the application