Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
Is there any Spring exception that can be thrown to stop an app mid-way in its start Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there any Spring exception that can be thrown to stop an app mid-way in its start

    I want to programmatically shut down the application from starting, e.g., mid-way, if a certain condition is raised. I do not want code as System.exit(1) as it will terminate the entire JVM and more than 1 application running in the JVM will be shut down. My goal is to shut down only one application (among more than one) that is running in the same shared JVM. As such, System.exit(int) is not an option.

    Is there any Spring exception that I can throw which will stop the application from starting? Throwing a Runtime exception (throw new RuntimeException())does not stop the application - application still gets started.

    My goal is to stop the application from starting, if that condition is raised. Can I use any Spring specific API, or throw any specific Spring exception that will stop the application from starting?

    I am using WebSphere 6.1 as application server.
Working...
X