Skip to content

jacksparrow414/jdbc-stream-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference Article

Tech Stack

  • Weld-CDI
  • RestEasy
  • JPA/Hibernate
  • PostgreSQL
  • Tomcat
  • Docker

How To Run?

Create a PostgreSQL database

cd config
docker-compose up -d

Run the application

  1. Run jdbc.stream.demo.GenerateDataSqlTest to generate data.sql, this sql will be placed in src/main/resources/META-INF/sql
  2. Start the application using IDEA to insert data into the database
  3. Stop the application
  4. Comment out the last four properties of persistence.xml
  5. set JVM options. IDEA > Run > Edit Configurations > VM options
-Xms50m -Xmx50m
  1. Start the application using IDEA agian
  2. Use curl to test the application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages