[jboss-user] [JBoss Cache] - Jboss Cache and Hibernate/JPA

Praveen Kumar do-not-reply at jboss.com
Wed May 19 06:36:52 EDT 2010


Praveen Kumar [http://community.jboss.org/people/praveen.kumar] created the discussion

"Jboss Cache and Hibernate/JPA"

To view the discussion, visit: http://community.jboss.org/message/543795#543795

--------------------------------------------------------------
Hi,

  I am using jboss-5.1.0.GA and Hibernate/JPA application.I gone through Jboss cache and find the configuration is at  <JBOSS_HOME>/server/all/deploy/cluster/jboss-cache-manager.sar/META-INF.

Here we have two files,*jboss-cache-configs.xml* and  *jboss-cache-manager-jboss-beans.xml.*What i find all  cache configuration in jboss-cache-manager-jboss-beans.xml with bean name "*CacheConfigurationRegistry*".If we go through default configuration *<property name="newConfigurations">,*then it has all *different cache for different services* that are called from application.

My question is,in our *Hibernate/JPA application where will configure that will call cacheManager and cache instance will created*.

*Say,we have configuration for Hibernate/JPA are mvcc-entity,optimistic-entity,pessimistic-entity etc*.

>From application *how will call cacheManger to instantiate a particular configuration (say,mvcc-entity)*.

Appreciate in advance.

Thanks,
Praveen Kumar

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/543795#543795]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100519/ed5bec5d/attachment.html 


More information about the jboss-user mailing list