-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Serivce and JBossCache config
PostPosted: Sun Jun 19, 2005 12:59 pm 
Beginner
Beginner

Joined: Mon Jan 24, 2005 6:42 pm
Posts: 26
Hello,

I just finished reading caching strategies in the HIA book, and I would like to centralize all the cache info in a single file. In a standalone configuration I would do this within hibernate.cfg.xml file.

So for the caveatemptor app I would have:

<hibernate-configuration>
<session-factory>

--mappings--

<!-- Caching -->
<class-cache
class="org.hibernate.auction.model.Category"
region="org/hibernate/auction/model/Category"
usage="read-write"/>

<class-cache
class="org.hibernate.auction.model.Item"
region="org/hibernate/auction/model/Item"
usage="transactional"/>

<class-cache
class="org.hibernate.auction.model.Bid"
region="org/hibernate/auction/model/Bid"
usage="read-only"/>
</session-factory>
</hibernate-configuration>

How do I configure the same thing but within hibernate-service.xml or better said when hibernate is configured as a service.

I know I can include caching in the mapping files, but I am interested in a centralized location.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.