Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.6
-
None
-
Patch
Description
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.