Package com.opensymphony.module.propertyset.cached

Examples of com.opensymphony.module.propertyset.cached.CachingPropertySet


            InfoglueDefaultHibernateConfigurationProvider configurationProvider = new InfoglueDefaultHibernateConfigurationProvider();
            configurationProvider.setSessionFactory(getSessionFactory());
   
            args.put("configurationProvider", configurationProvider);
           
        ps = new CachingPropertySet();
       
        Map args2 = new HashMap();
        args2.put("PropertySet", PropertySetManager.getInstance("hibernate", args));
        args2.put("bulkload", new Boolean(false));
       
View Full Code Here


        InfoglueDefaultHibernateConfigurationProvider configurationProvider = new InfoglueDefaultHibernateConfigurationProvider();
            configurationProvider.setSessionFactory(sessionFactory);
   
            args.put("configurationProvider", configurationProvider);
           
        ps = new CachingPropertySet();
       
        Map args2 = new HashMap();
        args2.put("PropertySet", PropertySetManager.getInstance("hibernate", args));
        args2.put("bulkload", new Boolean(true));
       
        ps.init(new HashMap(), args2);
        CacheController.cacheObject("propertySetCache", key, ps);
          //logger.info("Caching propertySet for entry: " + entryId + ":" + ps);
       
            ps = PropertySetManager.getInstance("hibernate", args);
        }
        catch(Exception e)
        {
          e.printStackTrace();
         
          try
          {
          logger.error("\n\nRestoring the session factory....");
            //sessionFactory.close();
          sessionFactory = new Configuration().configure().buildSessionFactory();
         
          InfoglueDefaultHibernateConfigurationProvider configurationProvider = new InfoglueDefaultHibernateConfigurationProvider();
              configurationProvider.setSessionFactory(sessionFactory);
     
              Map args = new HashMap();
              args.put("configurationProvider", configurationProvider);
             
          ps = new CachingPropertySet();
         
          Map args2 = new HashMap();
          args2.put("PropertySet", PropertySetManager.getInstance("hibernate", args));
          args2.put("bulkload", new Boolean(true));
         
View Full Code Here

TOP

Related Classes of com.opensymphony.module.propertyset.cached.CachingPropertySet

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.