when I deploy a stateful session bean, the state can't keep; while a deploy a stateless session bean,the state keep. why? my session bean:
the client code:
when I code "stateful" in the ejb-jar.xml, I found the result is always "1" even I refresh the browser times. when I code "stateless" in the ejb-jar.xml, I found the result is "1",and then "2" and then "3"... I feel puzzling, it does not obey the book "Mastering EJB".