Can I use dropwizard to do a one time job but without Jersey started?

56 views
Skip to first unread message

Feng Lei

unread,
Aug 6, 2021, 4:22:59 AM8/6/21
to dropwizard-dev
Hi Dropwizard,

I have a one time job. Trying to make it being powered by dropwizard. In theory, I can use dropwizard command to achieve like this blog recommend. https://sadique.io/blog/2019/07/28/managing-environment-lifecycles-for-dropwizard-commands/

But what my concern is whether the dropwizard will still start the Jersey whatever after my custom command was finished.

Because my job is only needed to be executed once time, so don't need a Jersey always stand-by. Clean up everything once the command is over.

Could you let me know what the truth is?


Jochen Schalanda

unread,
Aug 6, 2021, 5:11:12 PM8/6/21
to dropwiz...@googlegroups.com
Hi,

a Command or ConfiguredCommand won't start Jetty.


Cheers,
Jochen

--
You received this message because you are subscribed to the Google Groups "dropwizard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-dev/7b2009c9-8a5e-4406-a2ac-17befc69c78an%40googlegroups.com.

Feng Lei

unread,
Aug 7, 2021, 3:17:21 AM8/7/21
to dropwizard-dev
Hi Jochen,

That is what I expect. Really great! 

Thank you,
Feng
Reply all
Reply to author
Forward
0 new messages