[Clustering/JBoss] - Re: Trouble getting clustering to work in a certain setup
by davewebb
I had this issue the other day. It has do do with machines with multiple NICs/IPAddresses.
Edit the following files:
$JBOSS_HOME/server/yourserver/deploy/cluster-service.xml
$JBOSS_HOME/server/yourserver/deploy/tc5-cluster.sar/META-INF/jboss-service.xml
Look for this comment where the Mutlicast settings are located (PartitionConfig and ClusterConfig respectively).
| <!--
| The default UDP stack:
| - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
| appropriate NIC IP address, e.g bind_addr="192.168.0.2".
| - On Windows machines, because of the media sense feature being broken with multicast
| (even after disabling media sense) set the UDP protocol's loopback attribute to true
| -->
|
As suggested by the comment, add the bind_addr="" attribute to the tag and specify the one(1) IP Address you want to bind to for multicasting.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016400#4016400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016400
19Â years, 2Â months
[JBoss Seam] - DataModelSelection returns wrong entry.
by hubaer
Hi all,
I have a strange problem with a DataModel. I have a list of item entities referring with a button on a detail information page.
Now after showing the overview page the first time and clicking on an item entry I always get the first item in the list.
If I go back with the browsers back button and then select this item again, it is displayed correctly ?!?
Are there errors in my annotations? There is not much code that can go wrong :)
The overview bean with the data model:
@Stateful
@Name("itemOverview")
@Scope(ScopeType.EVENT)
public class ItemOverviewActionBean implements ItemOverviewAction, Serializable {
@DataModel(scope=ScopeType.PAGE)
private List itemList;
@DataModelSelection
@Out(required=false)
private Item item;
@Factory("itemList")
public void initItems() {
itemList = getItemList();
}
public String showDetails() {
return "itemDetails";
}
@Remove @Destroy
public void destroy() {
}
}
The corresponding jsf page:
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax" >
<h:form>
<h1><h:outputText value="#{messages['item.overview']}" /></h1>
<h:outputText value="#{messages['item.overview.noItemAvailable']}" rendered="#{itemList.rowCount==0}"/>
<h:dataTable var="itm" value="#{itemList}" rendered="#{itemList.rowCount>0}">
<h:column>
<f:facet name="header">
<h:outputText value="#{messages['item.title']}"/>
</f:facet>
<h:outputText value="#{itm.title}" />
</h:column>
<h:column>
<h:commandButton value="Details" action="#{itemOverview.showDetails}"/>
</h:column>
</h:dataTable>
</h:form>
</f:view>
The details bean.
@Stateful
@Name("itemDetail")
@Scope(ScopeType.CONVERSATION)
public class ItemDetailActionBean implements ItemDetailAction, Serializable {
@In(required=true)
@Out(required=true)
private Item item;
/** Creates a new instance of OverviewActionBean */
public DetailActionBean() {
}
@Remove @Destroy
public void destroy() {
}
...
}
I'm using JBoss 4.0.5 with Seam 1.1.6 on Windows XP Pro.
I hope someone could explain me this strange behaviour, and how to solve it.
Regards
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016395#4016395
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016395
19Â years, 2Â months
[JBoss Seam] - Re: s:selectItems - whto work
by lawrieg
I just updated seam from a CVS build on 10th Feb to the most recent nightly build and now I get the above exception (org.hibernate.PropertyValueException: not-null property references a null or transient value: com.jaywing.commsbuilder.Customer.status) whether or not I select an item in my drop-down.
What I can't figure out is:
1. Why the I now seemingly always get a null value set for status.
2. Why before I upgraded to the latest nightly build I was getting a "value is not valid" when I selected an item in the drop-down.
3. Also, why I'm getting an exception rather than a validation message.
Any ideas? Are these issues with ec:convertEntity / s:selectItems, or is there somewhere I'm going wrong in my code?
Thanks,
Lawrie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016393#4016393
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016393
19Â years, 2Â months