Hi Nirbhay,

and welcome to the mailing list.

Interesting question you've raised; I'm not sure if there's an "official"
way to do a shutdown.

Actually, because we are still in the init, I guess really the question is:
how does one stop the app from starting.

Obviously if you thrown an exception from the init, then the app won't be
available, and any requests will return a 503 error.

But other than calling System.exit(), we don't provide an API or other
formal mechanism.

I suppose we could catch any exceptions thrown out of init, and if they
occur then quit the application automatically.  Note though that this only
really makes sense when running from the org.apache.isis.WebServer; it
wouldn't make sense if deploying as a WAR file into Tomcat, say.

Please raise a ticket on our JIRA if you have a particular way you'd like
this implemented.

Cheers
Dan



On 30 July 2015 at 12:33, Nirbhay <[email protected]> wrote:

> Hi,
>
> I am nirbhay, I am working in one project where we are using apache isis.
>
> In one domain service class I need to check some condition in init method
> (during initialization) and depending upon result I need to shutdown the
> application completely.
>
> Which is the proper way to do the shutdown process?
>
> Thanks,
> Nirbhay
>
>

Reply via email to