I 've done a cluster with Payara Server composed by two instances, one is local ad resides onto a debian VM and the other one ,remote, resides also onto another debian VM. I deployed a test application and when I was looking to logs just wasn't able to find them. More precisely, I ment just one time almost randomly seem they appear and then nothing more. They show up into Admin Server-->View Logs File --> instance 1(local) -->log file --> server.log.
Below test application
package clusterTest;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class MySession implements Serializable {
private String val;
private static final Logger LOG = Logger.getLogger(MySession.class.getName());
public String getVal() {
LOG.log(Level.INFO, "getVal{0}", val);
System.out.println("getVal");
return val;
}
public void setVal(String val) {
LOG.log(Level.INFO, "setVal{0}", val);
System.out.println("setVal");
this.val = val;
}
}