Start/Stop of Jetty HTTP Server Programatically

38 views
Skip to first unread message

Kuttaiah Robin

unread,
Jun 6, 2019, 5:36:34 AM6/6/19
to dropwizard-dev
Hi,

Can someone help me to point the code where Dropwizzard start/stop the HTTP server ?

Basically when we execute below in tutorial which code starts the HTTP server?

java -jar target/hello-world-0.0.1-SNAPSHOT.jar server hello-world.yml


I have a framework where I need to feed  Dropwizzard HTTPServer, so that framework will start and stop it.

Appreciate your help in advance.

regards,
Robin Kuttaiah
Message has been deleted

Nicholas Babcock

unread,
Jun 7, 2019, 3:40:16 PM6/7/19
to dropwizard-dev
I'm not entirely sure what the ask is here, but the ServerCommand is where the server is built and started: https://github.com/dropwizard/dropwizard/blob/7bb03f14b1c5d0f6f2f763ca3eb6c11cb42e9d15/dropwizard-core/src/main/java/io/dropwizard/cli/ServerCommand.java#L49

-Nick.
Reply all
Reply to author
Forward
0 new messages