javax.ejb.NoSuchEJBException: Could not find stateful bean: 3j011-udy7sm-hkt798pd-1-hkt7bobh-9 -


many times whenever try access pages or click buttons "could not find stateful bean: 3j011-udy7sm-hkt798pd-1-hkt7bobh-9"error hits on screen jsf project.do know cause errpr

possibly ran timeout, , stateful session been has been removed container.

you can use @statefultimeout (ejb 3.1) set value. quote javadoc:

specifies amount of time stateful session bean can idle (not receive client invocations) before eligible removal container.

to verify if case, add method @predestroy, can see if sfsb has been removed.

example:

@stateful(name = "xxx") @statefultimeout(value = 15, unit = timeunit.seconds) public class sfsb {   @predestroy   public void predestroy() {     system.out.println("info: " + "@predestroy");   } } 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -