Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frameworks/Java/jooby/conf/application.vertx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Add/Override some properties to matches Vertx pg Driver properties
db.database = ${db.databaseName}
db.host = ${db.serverName}
db.cachePreparedStatements = true
db.preparedStatementCacheMaxSize = 1024
db.pipeliningLimit = 256
4 changes: 2 additions & 2 deletions frameworks/Java/jooby/jooby-pgclient.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ COPY pom.xml pom.xml
COPY src src
COPY public public
COPY conf conf
RUN mvn package -q -P netty
RUN mvn package -q -P vertx

EXPOSE 8080

CMD ["java", "-server", "-Xms2g", "-Xmx2g", "-XX:+UseNUMA", "-XX:+UseParallelGC", "--enable-native-access=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED", "--sun-misc-unsafe-memory-access=allow", "-Dio.netty.disableHttpHeadersValidation=true", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-Dio.netty.noUnsafe=false", "-Dio.netty.eventLoopGroup=single", "-cp", "target/jooby.jar", "com.techempower.ReactivePg"]
CMD ["java", "-server", "-Xms2g", "-Xmx2g", "-XX:+UseNUMA", "-XX:+UseParallelGC", "--enable-native-access=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED", "--sun-misc-unsafe-memory-access=allow", "-Dio.netty.disableHttpHeadersValidation=true", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-Dio.netty.noUnsafe=false", "-Dio.netty.eventLoopGroup=single", "-Djava.lang.Integer.IntegerCache.high=10000", "-Dvertx.disableMetrics=true", "-Dvertx.disableContextTimings=true", "-cp", "target/jooby.jar", "com.techempower.ReactivePg", "vertx"]
20 changes: 16 additions & 4 deletions frameworks/Java/jooby/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<name>jooby</name>

<properties>
<jooby.version>4.0.7</jooby.version>
<jooby.version>4.0.9</jooby.version>
<dsl-json.version>2.0.2</dsl-json.version>
<postgresql.version>42.7.7</postgresql.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -44,10 +44,11 @@
<version>${postgresql.version}</version>
</dependency>

<!-- vertx -->
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-pg-client</artifactId>
<version>5.0.1</version>
<groupId>io.jooby</groupId>
<artifactId>jooby-vertx-pg-client</artifactId>
<version>${jooby.version}</version>
</dependency>

<!-- json -->
Expand Down Expand Up @@ -205,6 +206,17 @@
</dependency>
</dependencies>
</profile>

<profile>
<id>vertx</id>
<dependencies>
<dependency>
<groupId>io.jooby</groupId>
<artifactId>jooby-vertx</artifactId>
<version>${jooby.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class App extends Jooby {

private static final String MESSAGE = "Hello, World!";

private static final byte[] MESSAGE_BYTES = MESSAGE.getBytes(StandardCharsets.US_ASCII);
private static final byte[] MESSAGE_BYTES = MESSAGE.getBytes(StandardCharsets.UTF_8);

{
/** Database: */
Expand Down
201 changes: 0 additions & 201 deletions frameworks/Java/jooby/src/main/java/com/techempower/PgClient.java

This file was deleted.

Loading
Loading