[JBossCache] - Shunning not working
by jbirkenmaier
Hi,
I have 2 JChannels both of which have shun enabled. One channel is for JBoss itself and the other is for my PojoCache. I have a cluster consisting of {A,B,C}. I unplug the network cable for C. Each node detects the loss of the other node(s). I wait about 60 seconds then plug the cable back in. What I want is for {A,B} to continue in their own cluster and C to continue in its own (separate) cluster. In other works, A and B reject C's effort to rejoin the cluster.
What is happening is that C rejoins A and B and my cache is merged thus becoming corrupt with C data. In other words, node C is not shunned by A and B and nodes A and B aren't shunned by C. Each node is notified of the change via a merge view event. I still need to receive this notification that a node tried to rejoin the cluster. I just want the rejoin to fail without touching the cache.
Here is an excerpt from one XML config file:
jboss:service=Naming
jboss:service=TransactionManager
mycom.prox:type=Connector,transport=proxsocket
org.jboss.cache.JBossTransactionManagerLookup
OPTIMISTIC
true
true
${jboss.partition.name:DefaultPartition}
${prox.cluster.mode:LOCAL}
<UDP mcast_addr="228.1.3.4" mcast_port="48868" 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" use_local_host="true"/>
<PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD_SOCK down_thread="false" up_thread="false"/>
<FD timeout="1000" max_tries="8" down_thread="false" up_thread="false" shun="true"/>
<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="700" up_thread="false" down_thread="false"/>
<VIEW_SYNC avg_send_interval="60000" down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true"/>
<FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
5000
<!-- Configure Marshalling (Both of these should be true together according to TreeCache Docs)-->
true
true
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978588#3978588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978588
19 years, 8 months
[JBoss Seam] - JavaScript Error when using sortable <t:dataTable>
by appendix
Hi,
I'd like to use the Apache Tomahawk dataTable component to display Seams taskInstanceList using pagination and to be able to sort the table according to the users selection.
I followed the recommendations on this forum and I'm able to use tomahawk components (tested with dataTable, inputDate,...).
After wrapping the taskInstanceList into another class, responsible for holding the logic for sorting, I'm able to get a perfectly rendered dataTable on my page. Another thing working right out of the box was pagination, but I've a little issue when it comes to be able to sort the table.
Whenever a I click on a header field of the table, I get a JavaScript error
anonymous wrote : clear__5Fid69 is not defined.
| <t:dataTable value="#{pagedTaskInstanceList.list}" var="task"
| rows="5" id="tasks" preserveDataModel="false" rowId="#{task.id}"
| sortColumn="#{pagedTaskInstanceList.sort}"
| sortAscending="#{pagedTaskInstanceList.ascending}"
| preserveSort="true" styleClass="scrollerTable">
|
| <h:column>
| <f:facet name="header">Id</f:facet>
| #{task.id}
| </h:column>
|
| <!-- further columns skipped -->
|
| </t:dataTable>
|
Has anyone managed to get a sortable and paged tomahawk datatable running? Anyonw any ideas on what I could possibly miss?
Is there an easier way to get the taskInstanceLIst paged and sortable?
Thanks for any pointers,
Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978586#3978586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978586
19 years, 8 months