Finally it worked. It was a problem in treecache.xml. Also am able to see the 
cache contents through applet using "build run.demo".
Here is treecache.xml that worked(had to do sort of hacking of the code to get 
things done):

  | <?xml version="1.0" encoding="UTF-8"?>
  | <server>
  | <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
  | <mbean code="org.jboss.cache.TreeCache" 
name="jboss.cache:service=TreeCache">
  |   <depends>jboss:service=Naming</depends>
  |   <depends>jboss:service=TransactionManager</depends>
  | <!--          <attribute 
name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>-->
  | 
  |   <attribute name="IsolationLevel">REPEATABLE_READ</attribute> 
  |     <attribute name="ClusterName">TreeCache-Cluster</attribute>
  |     <attribute name="CacheMode">REPL_SYNC</attribute>
  |     <attribute name="SyncReplTimeout">10000</attribute>
  |     <attribute name="LockAcquisitionTimeout">15000</attribute>
  |     <attribute name="FetchStateOnStartup">true</attribute>
  |         <attribute name="UseReplQueue">false</attribute>
  |         <attribute name="ReplQueueInterval">0</attribute>
  |         <attribute name="ReplQueueMaxElements">0</attribute>
  |         <attribute name="InitialStateRetrievalTimeout">5000</attribute>
  |         <attribute name="EvictionPolicyClass"></attribute>
  | 
  | <!--    <attribute name="EvictionPolicyClass">
  |     org.jboss.cache.eviction.LRUPolicy
  |     </attribute>-->
  | 
  |     <attribute name="EvictionPolicyConfig">
  |       <config>
  |       <attribute name="wakeUpIntervalSeconds">5</attribute>
  | <!-- Cache wide default -->
  | </config>
  | </attribute>
  | 
  |     <attribute name="ClusterConfig">
  |             <config>
  |                 <UDP mcast_addr="224.10.10.10" mcast_port="45566"
  |                     ip_ttl="64" ip_mcast="true" 
  |                     mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
  |                     ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
  |                     loopback="false" bind_addr="127.0.0.1"/>
  |                 <PING timeout="2000" num_initial_members="3"
  |                     up_thread="false" down_thread="false"/>
  |                 <MERGE2 min_interval="10000" max_interval="20000"/>
  |                 <FD_SOCK/>
  |                 <VERIFY_SUSPECT timeout="1500"
  |                     up_thread="false" down_thread="false"/>
  |                 <pbcast.NAKACK gc_lag="50" 
retransmit_timeout="600,1200,2400,4800"
  |                     max_xmit_size="8192" up_thread="false" 
down_thread="false"/>
  |                 <UNICAST timeout="600,1200,2400" window_size="100" 
min_threshold="10"
  |                     down_thread="false"/>
  |                 <pbcast.STABLE desired_avg_gossip="20000"
  |                     up_thread="false" down_thread="false"/>
  |                 <FRAG frag_size="8192"
  |                     down_thread="false" up_thread="false"/>
  |                 <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
  |                     shun="true" print_local_addr="true"/>
  |                 <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
  |             </config>
  |         </attribute>
  | 
  | </mbean>
  | </server>
  | 
  | 


Regards, Cigards & Love
Hari

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865651#3865651

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865651


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to