We have a situation where our Spring connects some beans that include ActiveMQ classes created using Java 6. Our application runs on client servers, so we cannot guarantee that they have Java 6 or later installed. If they have Java 5, the application cannot start due to a BeanCreationException with classes that depend on ActiveMQ (the main reason is UnsupportedClassVersionError ).
So my question is: is there a way to ignore BeanCreationException and still run the application? I want to show an error message saying that they need to install Java 6 or later, but since the application does not even start, I will never have the opportunity to do this.
My guess is that there is no way to do this, because Spring should be able to guarantee that my application builds correctly after initialization, but I thought I would ask anyway. Any other suggestions on how to fulfill my ultimate goal will also be helpful and appreciated.
We are using Spring 3.0.6
Thanks!
java spring dependency-injection java-5 java-6
Sean adkinson
source share