Hi Patrick,

I don't quite understand the code that follows. What is the difference between this code and simply defaulting the value to non- finalizing impl?

Craig

On Feb 28, 2007, at 10:31 PM, [EMAIL PROTECTED] wrote:

         PersistenceUnitInfo pui, Map m) {
PersistenceProductDerivation pd = new PersistenceProductDerivation();
         try {
+            // if the BrokerImpl hasn't been specified, switch to the
+ // non-finalizing one, since anything claiming to be a container
+            // should be doing proper resource management.
+            if (!Configurations.containsProperty(BrokerValue.KEY,
+                pui.getProperties())
+ && !Configurations.containsProperty (BrokerValue.KEY, m)) { + m.put(BrokerValue.KEY, BrokerValue.NON_FINALIZING_ALIAS);
+            }
+
             ConfigurationProvider cp = pd.load(pui, m);
             if (cp == null)
                 return null;

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to