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: Help needed for cache configuration
PostPosted: Thu Aug 03, 2006 7:19 pm 

Joined: Fri Apr 21, 2006 1:47 am
Posts: 6
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.1


I am trying to configure the ehcache with our weblogic cluster and have downloaded the recent version also of ehcache jar 1.2.2 from ehcache site.


As given in hibernate docs, that hibernate creates caches named after the fully qualified name of Domain Objects. So I created one entry in my ehcache.xml file like this:


  <cache name="com.hp.dspp.common.pojo.DsppPartnerTaxonomy"

Here is my code to execute the query and want to cache the query result sets:

        final Query query = session.createQuery(

       "select master.TaxonomyId,detail.Name from DsppPartnerTaxonomy master join master.SetOfDsppPartnerTaxonomyDetail detail");

        return query.list();

The above code is perfectly fine and working but If i want to use cache region names as simple instead of fully qualified domain names, like DsppPartnerTaxonomy, its not executing the query and throwing error. I want to remove that com.hp.dspp.common.pojo from cache region name.

This is not my personal choice that I want to remove, its a requirement, because if i am using FQDN, then cluster configuration of ehcache is giving problem. In cluster configuration of ehcache, we have to write the following tag in each of the server ehcache.xml file:



If you notice, in the above tag we have to give our cache name in place of sampleCache11. E.g. here as per my code it should be com.hp.dspp.common.pojo.DsppPartnerTaxonomy, but this FQDN notation of cache name is not working here for cluster configuration.

Please help, how should I proceed here. Any pointers are welcome. Please!!! help.

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.