persistence@glassfish.java.net

Issue when the file writers are being closed

From: Pramod Gopinath <Pramod.Gopinath_at_Sun.COM>
Date: Fri, 17 Mar 2006 12:34:58 -0800

Hi Gordon
   The change listed in this email is for a scenario for which there is
no issue filed. But we have noticed this issue on Windows machines.

In oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider for
the java2db case we do not close the file writers. This leads to issues
on Windows platform. The change is to call

SchemaManager.closeDDLWriter();

Again this call will happen only if java2db is enabled.

Thanks
Pramod



Index: src/java/oracle/toplink/essentials/ejb/cmp3/EntityManagerFactoryProvider.java
===================================================================
RCS file: /cvs/glassfish/entity-persistence/src/java/oracle/toplink/essentials/ejb/cmp3/EntityManagerFactoryProvider.java,v
retrieving revision 1.22
diff -r1.22 EntityManagerFactoryProvider.java
344a345
> mgr.closeDDLWriter();