db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Baird" <Matthew.Ba...@motiva.com>
Subject cache refactoring
Date Tue, 05 Aug 2003 21:22:40 GMT
I propose we move the caching information out of OJB.PROPERTIES and into the repository.xml

cache configuration could be done via XML rather than the flat, and limiting, configuration
in the properties file.

Cache settings could exist as a global setting like the jdbc descriptor, and could be over-ridden
in a specific class if needed.

something like

<default-object-cache
	cache-class="some class"
	size-limit="10" |	time-limit="20">
</default-object-cache>

then in each ClassDescriptor

<class-descriptor
   	  class="org.apache.ojb.broker.Article"
   	  proxy="dynamic"
   	  table="Artikel">
	<object-cache cache-class="some class" size-limit="10" | time-limit="20"/>
	...
</class-descriptor>

any comments?

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message