Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 379397
Collapse All | Expand All

(-)a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/PersistenceUnitProperties.java (+10 lines)
Lines 456-461 public class PersistenceUnitProperties { Link Here
456
    public static final String CONNECTION_POOL_SEQUENCE = "eclipselink.connection-pool.sequence.";
456
    public static final String CONNECTION_POOL_SEQUENCE = "eclipselink.connection-pool.sequence.";
457
    
457
    
458
    /**
458
    /**
459
     * Tell EclipseLink to use it's internal connection pool to pool connections from a datasource.
460
     * 
461
     * This property is useful when using EclipseLink with Gemini JPA because it internally wraps local
462
     * database information in a datasource.
463
     * 
464
     * Default: false
465
     */
466
    public static final String CONNECTION_POOL_INTERNALLY_POOL_DATASOURCE = "eclipselink.connection-pool.force-internal-pool";
467
    
468
    /**
459
     * The <code>"eclipselink.jdbc.connections.wait-timeout"</code> property
469
     * The <code>"eclipselink.jdbc.connections.wait-timeout"</code> property
460
     * which specifies the timeout time in milliseconds (ms) that will be waited
470
     * which specifies the timeout time in milliseconds (ms) that will be waited
461
     * for an available connection before an exception is thrown. Ignored in
471
     * for an available connection before an exception is thrown. Ignored in
(-)a/jpa/org.eclipse.persistence.jpa/src/org/eclipse/persistence/internal/jpa/EntityManagerSetupImpl.java (-1 / +4 lines)
Lines 1886-1892 public class EntityManagerSetupImpl implements MetadataRefreshListener { Link Here
1886
                jndiConnector = new JNDIConnector(mainDatasource);                                
1886
                jndiConnector = new JNDIConnector(mainDatasource);                                
1887
            }
1887
            }
1888
            login.setConnector(jndiConnector);
1888
            login.setConnector(jndiConnector);
1889
            login.setUsesExternalConnectionPooling(true);
1889
            String useInternalConnectionPool = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.CONNECTION_POOL_INTERNALLY_POOL_DATASOURCE, m, this.session);
1890
            if (!"true".equalsIgnoreCase(useInternalConnectionPool)){
1891
                login.setUsesExternalConnectionPooling(true);
1892
            }
1890
        }
1893
        }
1891
1894
1892
        if (this.session.isServerSession()) {
1895
        if (this.session.isServerSession()) {

Return to bug 379397