[JBossCache] - Re: Persistent configuration in clustered environment.
by manik.surtaniï¼ jboss.com
Will look into adding your tests, but for now:
1) This should pass - and it does on Branch_JBossCache_1_4_0 (off which 1.4.1.SP1 was recently released)
2) Changing the order with which you restart caches is a problem. There is no way of knowing which cache's persistent state is "correct". Therefore, the first one that comes back up is treated as correct. When the 2nd cache comes up, it looks for any existing members in the cluster and requests state from that member. If that member happens to have older state (since it was shut down and missed stuff) then that node is still treated as holding the true data rep since there is no way of knowing that it was shut down for a while, things moved on, and then the rest of the cluster was shut down.
One way around this is to use a shared cache loader so that all cache instances use the same persistent store.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013601#4013601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013601
19Â years, 2Â months
[JBoss Seam] - How do I edit the contents of a datatable row?
by Frippe
My problem is, when I try to inject the object from the row I try to edit, I get the object in its unchaged mode, and I can't find the changes.
Do you have ideas how to get the changes?
In my stateful sessionbean @Name("aclList")
| @DataModel("acls")
| private List<ACL> acls;
|
| @DataModelSelection("acls")
| @Out(required=false)
| private ACL selAcl;
|
| @DataModel("rights")
| private List<ARO> rights;
|
| @DataModelSelection("rights")
| @Out(required=false)
| private ARO selAro;
|
| + the metods to fill the Lists...
In the stateless action bean @Name("aclAction")
@In(required=false)
| private ACL selAcl;
|
| public void edit(){
| System.out.println("ACLAction:edit() :: " + selAcl);
| }
|
This is my form in the XHTML page
<h:form>
| <h:dataTable value="#{acls}" var="selAcl" rendered="#{acls.rowCount>0}">
| <h:column>
| <f:facet name="header">Resource</f:facet>
| #{selAcl.axo.name}
| </h:column>
| <h:column>
| <f:facet name="header">Right</f:facet>
|
| <h:selectOneMenu id="selAro" value="#{selAcl.aro.ID}">
| <si:selectItems value="#{rights}" var="aro" label="#{aro.name}" key="#{aro.ID}"/>
| </h:selectOneMenu>
| </h:column>
|
| <h:column>
| <f:facet name="header">Valid</f:facet>
| <h:selectBooleanCheckbox value="#{selAcl.valid}"/>
| </h:column>
|
| <h:column>
| <s:link action="#{aclAction.delete}">Delete</s:link><br/>
| <s:link action="#{aclAction.edit}">Change</s:link>
| </h:column>
|
| </h:dataTable>
| </h:form>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013590#4013590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013590
19Â years, 2Â months