Menu

Bug in Struts Spring Plugin

2004-01-19
2004-01-21
  • Eric H. Jung

    Eric H. Jung - 2004-01-19

    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

     
    • Don Brown

      Don Brown - 2004-01-21

      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

       

Log in to post a comment.