> 
> Hi,
> 
> 1) I need to completly clear the cache. How can I clear OJB 
> cache without restarting Tomcat?

pb.clearCache() (PersistenceBroker)


> 
> 2) Is there any way to control maximum cache size?


None of the current cache implementation's have any size parameters. However, I 
assume you are worried about memory usuage, they all use SoftReferences to 
store the persistent object into the cache. So, if the VM needs to garbage 
collect to free up memory, cached objects can be taken.

-Andrew



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to