struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leigh Anderson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-3460) Use look-before-you-leap strategy for creating Spring beans vs Struts objects
Date Mon, 28 Jun 2010 09:19:55 GMT

     [ https://issues.apache.org/jira/browse/WW-3460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leigh Anderson updated WW-3460:
-------------------------------

    Attachment: spring-plugin.patch

> Use look-before-you-leap strategy for creating Spring beans vs Struts objects
> -----------------------------------------------------------------------------
>
>                 Key: WW-3460
>                 URL: https://issues.apache.org/jira/browse/WW-3460
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Spring
>    Affects Versions: 2.1.6
>            Reporter: Leigh Anderson
>         Attachments: spring-plugin.patch
>
>
> For our use case with struts actions and validators, each page request resulted in the
SpringObjectFactory.buildBean() method being called multiple times for the validator beans
which were known ahead of time not to be spring-managed. This results in an exception being
thrown and caught -- effectively using exceptions as flow control. The attached patch checks
the Spring context before delegating the bean creation. 
> In our tests, this resulted in a reduction in both CPU use and request latency. 

-- 
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