Hi,

take a look at how the commands for dropwizard-migrations (using Liquibase) are 
being implemented:

https://github.com/dropwizard/dropwizard/blob/v2.0.24/dropwizard-migrations/src/main/java/io/dropwizard/migrations/AbstractLiquibaseCommand.java#L23
 
<https://github.com/dropwizard/dropwizard/blob/v2.0.24/dropwizard-migrations/src/main/java/io/dropwizard/migrations/AbstractLiquibaseCommand.java#L23>

As mentioned in your previous thread, ConfiguredCommand won't start Jetty, but 
EnvironmentCommand will do this.

Cheers,
Jochen

> Am 10.08.2021 um 11:17 schrieb Feng Lei <wufengle...@gmail.com>:
> 
> Hi Dropwizard,
> 
> My custom command is named migrate which is EnvironmentCommand type. 
> It is just a plain command that does a job only once so it doesn't need 
> Jersey.
> It works fine but the problem is at the end of the job I expect the Java 
> application should stop automatically. But no, the application was still in a 
> running state and no phenomenons show it will stop later. 
> 
> It is a bit weird, do you guys know why that happens? It is something related 
> to the Dropwizard lifecycle?
> 
> -- 
> 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-dev+unsubscr...@googlegroups.com 
> <mailto:dropwizard-dev+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-dev/976a100b-afd6-407b-9483-9dc53867aec4n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dropwizard-dev/976a100b-afd6-407b-9483-9dc53867aec4n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-dev/AB8648F7-717E-4F59-97B9-BE472D6184FC%40schalanda.name.

Reply via email to