-->
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 & org.hibernate.cache. JndiBoundTreeCacheProvi
PostPosted: Fri Dec 23, 2005 12:45 pm 
Newbie

Joined: Tue May 03, 2005 6:41 pm
Posts: 6
I am failing to use TreeCache with Hibernate in jboss 4.0.3 sp1
Hibernate and JBoss TreeCache are from original jboss 4.0.3 sp1

I successfully deployed boss.cache:service=TreeCache as mbean
After that I registered it under jndi name MyCache
Code:
server>
        <mbean
                  code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
                  name="mydomain:service=proxyFactory,type=jrmp,target=factory">
                  <attribute
                  name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
                  <attribute
                  name="TargetName">jboss.cache:service=TreeCache</attribute>

                  <attribute name="JndiName">MyCache</attribute> <attribute
                  name="InvokeTargetMethod">true</attribute> <attribute
                  name="ExportedInterface">org.jboss.cache.TreeCacheMBean</attribute>
                  <attribute name="ClientInterceptors"> <iterceptors>
                  <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
                  <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
                  <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                  </iterceptors> </attribute>
                  <depends>jboss:service=invoker,type=jrmp</depends>
                  <depends>boss.cache:service=TreeCache</depends>
        </mbean>
</server>


I specified a Hibernate mbean
Code:
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=ThunderSMS">
      <attribute name="DatasourceName">java:/SmsFactoryDS</attribute>
      <attribute name="SessionFactoryName">java:/hibernate/ThunderSMS</attribute>
      <attribute name="Dialect">org.hibernate.dialect.PostgreSQLDialect</attribute>
      <attribute name="CacheProviderClass">org.hibernate.cache. JndiBoundTreeCacheProvider</attribute>
      <attribute name="DeployedTreeCacheObjectName">MyCache</attribute>
     <attribute name="ShowSqlEnabled">true</attribute>
     <attribute name="QueryCacheEnabled">true</attribute>
   </mbean>
</server>


Unfortunately during deployment I get following exception
Code:
org.jboss.util.NestedRuntimeException: Key properties cannot be empty; - nested throwable: (javax.ma
nagement.MalformedObjectNameException: Key properties cannot be empty)


Could anyone suggest me anything or just provide with some existing example ?

thanx
Alex


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.