users@glassfish.java.net

Re: How to stop application deployment after failed initialization

From: <glassfish_at_javadesktop.org>
Date: Fri, 08 May 2009 11:31:55 PDT

Thanks for this hint.

I will implement and test, whether throwing an instance of 'java.lang.RuntimeException' will prematurely terminate the deployment process.

As we can see here once more: The disadvantage of using undeclared (i.e. runtime) exceptions is, that the behaviour is hidden. Hidden is all-right if something happens unexpectedly and unforeseen, but initilization failures are not that unusual ...
[Message sent by forum member 'frankwhofmann' (frankwhofmann)]

http://forums.java.net/jive/thread.jspa?messageID=345570