-->
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.  [ 3 posts ] 
Author Message
 Post subject: Resolving TreeCache through JMX
PostPosted: Mon Nov 22, 2004 10:45 am 
Newbie

Joined: Mon Nov 22, 2004 10:38 am
Posts: 9
JBoss 3.2.7RC1

It would be nice to be able to do this:

Code:
<code>
   <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=MyHibernateTreeCache">
      ...
   </mbean>

   <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
      ...
      <attribute name="CacheProviderClass">org.jboss.hibernate.cache.JMXTreeCacheProvider</attribute>
      <attribute name="TreeCacheJMXName">jboss.cache:service=MyHibernateTreeCache</attribute>
   </mbean>
</code>


I don't really see the point of having a treecache.xml OUTSIDE of the hibernate-service.xml descriptor. The latter is intended to define resources and dependencies. Isn't that the whole idea of the unified configuration of resources through JMX? It makes things so much more consistent and cleaner.

I can whack this up and contribute it if more people are interested.

S.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 10:48 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
We almost had it in 2.1.7 (which I'm about to release right now) but it didn't make it. Expect it later this year.

At the moment Hibernate starts/manages the TreeCache instance.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 11:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
There is a provider included in the JBoss code already for exactly this purpose. Although it is currently meant to retrieve the JBossCache instance from JNDI rather than by JMX ObjectName.

JBossCache 1.2 provides the ability to bind a cache to JNDI when deployed as an MBean. So you'd either need to use that version of JBossCache and take advantage of that feature or manually bind the cache into JNDI. Or, as Christian mentioned, I will move this funtionality into Hibernate CVS at some point and you can wait for that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.