[Clustering/JBoss] - Re: Clustering begginner..please HELP
by davewebb
Sree,
I have a couple of recommendations for you.
1) Turn your logging level down to INFO instead of DEBUG. If there is an ERROR, we can try DEBUG if we need to. Go to server/all/conf and edit your log4j.xml and modify your CONSOLE appender like this:
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="INFO"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
The threshold parameter is the important one.
2) Restart you Jboss servers.
3) Look in the server.log for some lines similar to these.
-------------------------------------------------------
| GMS: address is winchester:1789 (additional data: 16 bytes)
| -------------------------------------------------------
| 15:29:39,414 INFO [DefaultPartition] Number of cluster members: 1
| 15:29:39,414 INFO [DefaultPartition] Other members: 0
| 15:29:39,414 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
| 15:29:39,414 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [10.1.69.100:1099]
| 15:29:39,434 INFO [DefaultPartition] I am (null) received membershipChanged event:
| 15:29:39,434 INFO [DefaultPartition] Dead members: 0 ([])
| 15:29:39,434 INFO [DefaultPartition] New Members : 0 ([])
| 15:29:39,434 INFO [DefaultPartition] All Members : 1 ([10.1.69.100:1099])
You should see All members at 2, and the P addresses should be your bound IPs of your servers.
I will talk more about failover when I have more time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014247#4014247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014247
19Â years, 2Â months
[JBoss Seam] - Re: Seam FacesMessages with its createFacesMessage method an
by fernando_jmt
"petemuir" wrote : You can use:
|
| FacesMessages.instance().addFromResourceBundle(getClientId(facesContext), severity, key, params);
I tried what you suggest me before posting the message here. But it does not work.
This because the ValidatorException has this signature when creating it:
| public ValidatorException(javax.faces.application.FacesMessage facesMessage)
|
So, I need a FacesMessage in order to use it for the ValidatorEception constructor.
This is was I tried:
| FacesMessages.instance().addFromResourceBundle(uiComponent.getId(), FacesMessage.SEVERITY_ERROR, MESSAGE_KEY, messageParams);
|
| throw new ValidatorException(new FacesMessage());
|
But adding above code does not work. It validates, but no message appear in the page. So, FacesMessages.instance().addFromResourceBundle() does not work in this situation.
I also tried this and this works:
| FacesMessage message =FacesMessages.createFacesMessage(FacesMessage.SEVERITY_ERROR, "The value (#0) is not equal with value of #1", messageParams);
|
| throw new ValidatorException(message);
|
|
But in the above code the problem is that there is no way to create a FacesMessage from resource bundle. This is the reason because I suggest to add the method I mentioned before.
Is there something I am missing?
There is another way?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014244#4014244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014244
19Â years, 2Â months