struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Rosenvold (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3407) Convention plugin eager-loads spring components upon initialization of convention configuration
Date Sun, 14 Mar 2010 07:35:27 GMT
Convention plugin eager-loads spring components upon initialization of convention configuration
-----------------------------------------------------------------------------------------------

                 Key: WW-3407
                 URL: https://issues.apache.org/jira/browse/WW-3407
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Convention
    Affects Versions: 2.1.8.1, 2.2.0
         Environment: spring 2.5+
            Reporter: Kristian Rosenvold
         Attachments: strutsConventionEagerloading.patch

Our action classes have their life cycle managed by spring, and they are /request/ scoped.
When the convention plugin initializes the struts configuration it tries to initialize the
spring beans. This does work because "request" scope does not exist at the time the struts
config is created.

The enclosed patch simply removes the eager-loading since it is only done as an optimization
(and maybe eager early consistency check). It would be possible to make this a flag although
I really think the default should be "off"; the "off" behavior is consistent with behavior
of "older" struts technologies in this respectearlier struts versions..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message