-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to user Hibernate with a pre-deployed tree cache?
PostPosted: Fri Apr 22, 2005 3:34 am 
Newbie

Joined: Tue Apr 12, 2005 9:50 am
Posts: 13
Location: Karlsruhe, Germany
Hi,

I wondered if/how it is possible to configure Hibernate (3) to use a pre-deployed TreeCache.

My point is the following:
I want to use TreeCache as 2nd-level-cache in a JBoss clustered environment, but I don't want to define the exact network-parameters at packaging-time. Instead I think it would make sense if I could assume that there is a running TreeCache on the node my application will be deployed to and a reference to this could be obtained by hibernate using JNDI. Hibernate would just have to configure the eviction policy for its cache-region.

Has anyone got a solution for this environment?

bye,
Stephan


Top
 Profile  
 
 Post subject: solution
PostPosted: Thu Apr 28, 2005 4:14 am 
Newbie

Joined: Tue Apr 12, 2005 9:50 am
Posts: 13
Location: Karlsruhe, Germany
Ok, just in case someone reads this later:

there is a JndiBoundTreeCacheProvider in Hibernate-3 which can be used to resolve an existing TreeCache-Instance via JNDI.

I just submitted a variant of this (an MBeanBoundTreeCacheProvider), to support lookups of existing treecaches via an MBeanServer. This is issue HHH-410 in JIRA.

bye,
Stephan


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

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.