openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-264) Not calling finalize() method of data cache plug-in when application terminates.
Date Sat, 23 Jun 2007 05:09:25 GMT

    [ 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.


Mime
View raw message