[ 
https://issues.apache.org/jira/browse/OPENJPA-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507562
 ] 

Patrick Linskey commented on OPENJPA-264:
-----------------------------------------

org.apache.openjpa.datacache.DataCache extends the Closeable interface. When 
the EMF shuts down, Closeable.close() will be invoked on the data cache 
instance. You should be able to do any shutdown logic there.

finalize() will be invoked by the JVM at it's discretion.

> Not calling finalize() method of data cache plug-in when application 
> terminates.
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-264
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-264
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.0.0
>            Reporter: Daniel Lee
>
> When a third party data (and query) cache is configured, the finalize() 
> method in these classes should be called (if provided) to give the plug-ins a 
> chance to release the resource the application has been using.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to