aspose file tools*
The moose likes JBoss/WildFly and the fly likes the Stateful and Stateless Bean in JBoss is reversed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "the Stateful and Stateless Bean in JBoss is reversed?" Watch "the Stateful and Stateless Bean in JBoss is reversed?" New topic
Author

the Stateful and Stateless Bean in JBoss is reversed?

frankie huang
Greenhorn

Joined: Dec 17, 2002
Posts: 18
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 ejb-jar.xml

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".
 
Consider Paul's rocket mass heater.
 
subject: the Stateful and Stateless Bean in JBoss is reversed?