Examples of JPAClassLoaderHolder


Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

            // Another workaround would be increasing Permanent Generation Heap size by adding VM argument -XX:MaxPermSize=256m.
            if(!this.isInContainerMode && state==STATE_UNDEPLOYED) {
                privateClassLoader = realClassLoader;
            } else {
                // Get the temporary classLoader based on the platform
                JPAClassLoaderHolder privateClassLoaderHolder = session.getServerPlatform().getNewTempClassLoader(info);
                privateClassLoader = privateClassLoaderHolder.getClassLoader();
                // Bug 229634: If we switched to using the non-temporary classLoader then disable weaving
                if(!privateClassLoaderHolder.isTempClassLoader()) {
                    // Disable dynamic weaving for the duration of this predeploy()
                    enableWeaving = Boolean.FALSE;
                }
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public boolean wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile){
        return getDatabaseSession().getPlatform().wasFailureCommunicationBased(exception, connection.getConnection(), sessionForProfile);
    }

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        return new JPAClassLoaderHolder(puInfo.getNewTempClassLoader(), true);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        // Bug 6460732: Use real classLoader instead of getNewTempClassLoader for now to avoid a JBoss NPE on loadClass()
        ClassLoader realClassLoader = puInfo.getClassLoader();
        AbstractSessionLog.getLog().log(AbstractSessionLog.WARNING, "persistence_unit_processor_jboss_temp_classloader_bypassed",//
                puInfo.getPersistenceUnitName(), realClassLoader);
        return new JPAClassLoaderHolder(realClassLoader, false);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public boolean wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile){
        return getDatabaseSession().getPlatform().wasFailureCommunicationBased(exception, connection.getConnection(), sessionForProfile);
    }

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        return new JPAClassLoaderHolder(puInfo.getNewTempClassLoader(), true);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        // Bug 6460732: Use real classLoader instead of getNewTempClassLoader for now to avoid a JBoss NPE on loadClass()
        ClassLoader realClassLoader = puInfo.getClassLoader();
        AbstractSessionLog.getLog().log(AbstractSessionLog.WARNING, "persistence_unit_processor_jboss_temp_classloader_bypassed",//
                puInfo.getPersistenceUnitName(), realClassLoader);
        return new JPAClassLoaderHolder(realClassLoader, false);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public boolean wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile){
        return getDatabaseSession().getPlatform().wasFailureCommunicationBased(exception, connection.getConnection(), sessionForProfile);
    }

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        return new JPAClassLoaderHolder(puInfo.getNewTempClassLoader(), true);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

            // Another workaround would be increasing Permanent Generation Heap size by adding VM argument -XX:MaxPermSize=256m.
            if(!this.isInContainerMode && state==STATE_UNDEPLOYED) {
                privateClassLoader = realClassLoader;
            } else {
                // Get the temporary classLoader based on the platform
                JPAClassLoaderHolder privateClassLoaderHolder = session.getServerPlatform().getNewTempClassLoader(info);
                privateClassLoader = privateClassLoaderHolder.getClassLoader();
                // Bug 229634: If we switched to using the non-temporary classLoader then disable weaving
                if(!privateClassLoaderHolder.isTempClassLoader()) {
                    // Disable dynamic weaving for the duration of this predeploy()
                    enableWeaving = Boolean.FALSE;
                }
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

            // Another workaround would be increasing Permanent Generation Heap size by adding VM argument -XX:MaxPermSize=256m.
            if(!this.isInContainerMode && state==STATE_UNDEPLOYED) {
                privateClassLoader = realClassLoader;
            } else {
                // Get the temporary classLoader based on the platform
                JPAClassLoaderHolder privateClassLoaderHolder = session.getServerPlatform().getNewTempClassLoader(info);
                privateClassLoader = privateClassLoaderHolder.getClassLoader();
                // Bug 229634: If we switched to using the non-temporary classLoader then disable weaving
                if(!privateClassLoaderHolder.isTempClassLoader()) {
                    // Disable dynamic weaving for the duration of this predeploy()
                    enableWeaving = Boolean.FALSE;
                }
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

    public boolean wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile){
        return getDatabaseSession().getPlatform().wasFailureCommunicationBased(exception, connection.getConnection(), sessionForProfile);
    }

    public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) {
        return new JPAClassLoaderHolder(puInfo.getNewTempClassLoader(), true);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.JPAClassLoaderHolder

                // Cannot start logging until session and log and initialized, so log start of predeploy here.
                session.log(SessionLog.FINEST, SessionLog.JPA, "predeploy_begin", new Object[]{getPersistenceUnitInfo().getPersistenceUnitName(), session.getName(), state, factoryCount});
   
                if (isSessionLoadedFromSessionsXML) {
                    if (this.compositeEmSetupImpl == null && this.staticWeaveInfo == null) {
                        JPAClassLoaderHolder privateClassLoaderHolder = session.getServerPlatform().getNewTempClassLoader(persistenceUnitInfo);
                        classLoaderToUse = privateClassLoaderHolder.getClassLoader();
                    } else {
                        classLoaderToUse = persistenceUnitInfo.getNewTempClassLoader();
                    }
                    // Loading session from sessions-xml.
                    String tempSessionName = sessionName;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.