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