Package org.intalio.tempo.web

Examples of org.intalio.tempo.web.SysPropApplicationContextLoader


    }
   
    public AbstractJPAConnectionFactory(String entityManagerFactoryName, Map<String, Object> properties) {
        Thread thread = Thread.currentThread();
        ClassLoader oldClassLoader = thread.getContextClassLoader();
        SysPropApplicationContextLoader context = SpringInit.CONTEXT;
        try {
            // check if we are loading from spring, and if so, apply the workaround for
            // Axis and Spring class loading otherwise classes needed for dynamic loading are not found
            if (context != null) {
                log.info("Using context file:" + context.getApplicationContextFile());
                thread.setContextClassLoader(context.getClass().getClassLoader());
            }

            initDatasourceIfNeeded(properties);
            initEM(entityManagerFactoryName, properties);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.intalio.tempo.web.SysPropApplicationContextLoader

Copyright © 2018 www.massapicom. 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.