[jboss-user] [JBoss Portal] - Re: Getting error as : Error creating MBeanProxy: jboss.cache:service=TreeCache

srinivas s do-not-reply at jboss.com
Thu Mar 3 12:18:36 EST 2011


srinivas s [http://community.jboss.org/people/ssaitala] created the discussion

"Re: Getting error as : Error creating MBeanProxy: jboss.cache:service=TreeCache"

To view the discussion, visit: http://community.jboss.org/message/590993#590993

--------------------------------------------------------------
Atlast , I have got the two jboss portal clustered nodes up and running with the below configuration changes, including the changes specified in the JBoss portal 2.7.2 documentation.

1. In Portal/Portlet/Instance/User hibernate.cfg.xml   adde the following  properties 
<property name="hibernate.cache.provider_class">org.jboss.hibernate.jbc.cacheprovider.JmxBoundTreeCacheProvider</property>
<property name="hibernate.treecache.mbean.object_name">portal:service=TreeCache,type=hibernate</property> 
Shimilarly make the changes to portal, portlet and user modules.

2. Download the below jar and add the jar to jboss-portal-2.7.2/server/all/lib
hibernate-jbc-cacheprovider-1.0.1.GA.jar
See if there is any other version of the jar, replace it with the above jar.
3. In instance, user, portal, portlet modules, in domain.hbm.xml, replace the word “read-write” in <cache-usage> tag with the work “transactional”.
4. In instance, user, portal, portlet modules, in hibernate.cfg.xml, make the secondary level cache to true.
Below is the tag for reference:
<property name="cache.use_second_level_cache">true</property>
5. in jboss-service.xml for ObjectDeploymentFactory there is a attribute which is set to true by default
   <!-- Set to false in clustered mode, otherwise set to true -->
<attribute name="RegistrationControlledByService">true</attribute>
Set it false.
*** Now even the servers are up with TreeCache, if I update the data in one node, then the data is not replicating in the other node simultaneously. Please let me know, if there is any other configuration change that needs to be done...!
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/590993#590993]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110303/fedd7385/attachment.html 


More information about the jboss-user mailing list