
|
If you were logged in you would be able to see more operations.
|
|
|
OSCache
Created: 19/Aug/04 08:50 AM
Updated: 01/May/07 11:01 AM
|
|
| Component/s: |
Filters
|
| Affects Version/s: |
2.0.2
|
| Fix Version/s: |
2.4
|
|
|
I want to use oscache filter in a spring controlled (and configured) environment: since all of my system is configured in spring files I have implemented a factory bean allowing me to initialize oscache with a spring bean. The only problem is that if I use filters, they are initialized before I have a chance to initialize spring (in websphere 5.1), and since they do initialize eagerly the cache by loading properties from the classpath, things get messed up. I fixed it by creating a clone of CacheFilter that initializes lazily the admin object in the doFilter instead of doing it in the init method: it would be good if this could be added as a configuration option.
|
|
Description
|
I want to use oscache filter in a spring controlled (and configured) environment: since all of my system is configured in spring files I have implemented a factory bean allowing me to initialize oscache with a spring bean. The only problem is that if I use filters, they are initialized before I have a chance to initialize spring (in websphere 5.1), and since they do initialize eagerly the cache by loading properties from the classpath, things get messed up. I fixed it by creating a clone of CacheFilter that initializes lazily the admin object in the doFilter instead of doing it in the init method: it would be good if this could be added as a configuration option. |
Show » |
|