Package org.hibernate.cache.infinispan

Examples of org.hibernate.cache.infinispan.JndiInfinispanRegionFactory


      bindToJndi = false;
      ExecutionEnvironment environment = new ExecutionEnvironment( this );
      environment.initialize();
      setEnvironment(environment);
      addEntityCheckCache();
      JndiInfinispanRegionFactory regionFactory = (JndiInfinispanRegionFactory) ((SessionFactoryImplementor)
            environment.getSessionFactory()).getSettings().getRegionFactory();
      Cache cache = regionFactory.getCacheManager().getCache("org.hibernate.test.cache.infinispan.functional.Item");
      assertEquals(ComponentStatus.RUNNING, cache.getStatus());
   }
View Full Code Here


    sessionFactory().close();
    bindToJndi = false;

    SessionFactoryImplementor sessionFactory = (SessionFactoryImplementor) configuration().buildSessionFactory( serviceRegistry() );
    addEntityCheckCache( sessionFactory );
    JndiInfinispanRegionFactory regionFactory = (JndiInfinispanRegionFactory) sessionFactory.getSettings().getRegionFactory();
    Cache cache = regionFactory.getCacheManager().getCache( "org.hibernate.test.cache.infinispan.functional.Item" );
    assertEquals( ComponentStatus.RUNNING, cache.getStatus() );
  }
View Full Code Here

    addEntityCheckCache( sessionFactory() );
    bindToJndi = false;
    rebuildSessionFactory();

    addEntityCheckCache( sessionFactory() );
    JndiInfinispanRegionFactory regionFactory = (JndiInfinispanRegionFactory) sessionFactory().getSettings().getRegionFactory();
    Cache cache = regionFactory.getCacheManager().getCache( "org.hibernate.test.cache.infinispan.functional.Item" );
    assertEquals( ComponentStatus.RUNNING, cache.getStatus() );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.cache.infinispan.JndiInfinispanRegionFactory

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.