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: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ The JDK provides an SPI to swap the underlying `HttpServer`, so you can easily u
<version>${jex.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http-spi</artifactId>
Expand Down
10 changes: 8 additions & 2 deletions avaje-jex/src/main/java/io/avaje/jex/core/BootstrapServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,15 @@ static Jex.Server start(Jex jex, SpiRoutes routes) {

server.createContext(contextPath, handler);
server.start();

var actualAddress = server.getAddress();
jex.lifecycle().status(AppLifecycle.Status.STARTED);
log.log(INFO, "Avaje Jex started {0} on port {1}://{2}", serverClass, scheme, socketAddress);
log.log(
INFO,
"Avaje Jex started {0} on port {1}://{2}:{3,number,#}",
serverClass,
scheme,
actualAddress.getHostName(),
actualAddress.getPort());
log.log(DEBUG, routes);
return new JdkJexServer(server, jex.lifecycle(), handler);
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
open module example.http.generation {

requires io.avaje.config;
requires io.avaje.jsonb;
requires io.avaje.http.api;
requires io.avaje.jex;
Expand Down
8 changes: 1 addition & 7 deletions examples/example-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@
</parent>
<artifactId>example-jetty</artifactId>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>12.0.17</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http-spi</artifactId>
<version>12.0.17</version>
</dependency>

<dependency>
<groupId>io.avaje</groupId>
<artifactId>avaje-jex</artifactId>
<version>3.0-RC20</version>
</dependency>

<dependency>
Expand Down