aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Stateless vs Stateful beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stateless vs Stateful beans" Watch "Stateless vs Stateful beans" New topic
Author

Stateless vs Stateful beans

Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152

Hi,

I am new to Java web development and I need a solid real world explanation of the difference between these two terms if anyone can help? I keep reading things like this for stateless session bean descriptions "...work can be performed within a single method invocation, or it may span multiple method invocations... in which case a stateful session bean would be required." I also read that stateless beans works with a single client. I know what a method is and how they work and a bean is a java class, but in this context ("method invocation") I am a bit confused.

Also, can anyone recommend a good book on EJBs? I was looking at the Head First EJB book but its almost ten years old at this stage.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stateless vs Stateful beans