History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-142
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Andres March
Reporter: Laurent Dauvilaire
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
OSCache

DiskPersistenceListener - use properties in cache.path

Created: 18/Feb/05 05:42 AM   Updated: 08/Sep/05 10:32 PM
Component/s: Listeners
Affects Version/s: 2.1
Fix Version/s: 3.0

Environment: OSCache use with Tomcat 5.5.7


 Description  « Hide
Would it be possible to use such value for cache.path ?
cache.path=${catalina.home}/webapps/mywebapp/WEB-INF/cache

This would avoir hard-coding the physical path in the webapplication.

Thanks in advance

Regards
Laurent


 All   Comments   Change History      Sort Order:
Andres March - [01/Mar/05 01:06 AM ]
We should support loading of properties using the servlet context. In the meantime, construct your own props object.

Frank Nestel - [29/May/05 07:52 AM ]
Where can I vote against? OK, there is some use for having an extension like that, but the initial example simply demonstrates how not to write servlet spec conform Apps: There is no cataline.home with most servlet containers :-)

Andres March - [29/May/05 10:47 AM ]
I might need to edit the description of this issue. What I'm proposing is loading the properties from a directory relative to the servlet context (when configured through the web.xml with a listener or something).

We will never token replace ${catalina.home} but we could provide web context relative path support. Although not only is the token a bad example. I would not recommend putting your cache files in your web context either but I'm sure this is the only option in some cases, so let's make that a goal.