I just had a lengthy discussion with some Spring developers on their mailing list (sorry, don't have a link to their archives) that when instantiating XmlBeanFactory, you should call factory.preInstantiateSingletons(). Otherwise, non-lazy singletons won't be instantiated inside SpringPlugIn.init(). Neither will their init-method be called from SpringPlugIn.init().
You should add factory.preInstantiateSingletons() to line 87 of Struts-Spring 0.2 otherwise you are essentially forcing all beans to be lazy-init="true".
Sincerely,
Eric Jung
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I added the requested pre-initialization to the CVS so it will be in the next release. In the future, to make sure I see bugs, you might also want to fill out a bug report. Thanks for the feedback.
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Don and everyone,
I just had a lengthy discussion with some Spring developers on their mailing list (sorry, don't have a link to their archives) that when instantiating XmlBeanFactory, you should call factory.preInstantiateSingletons(). Otherwise, non-lazy singletons won't be instantiated inside SpringPlugIn.init(). Neither will their init-method be called from SpringPlugIn.init().
You should add factory.preInstantiateSingletons() to line 87 of Struts-Spring 0.2 otherwise you are essentially forcing all beans to be lazy-init="true".
Sincerely,
Eric Jung
I added the requested pre-initialization to the CVS so it will be in the next release. In the future, to make sure I see bugs, you might also want to fill out a bug report. Thanks for the feedback.
Don