File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateless vs Stateful beans

 
Alan Smith
Ranch Hand
Posts: 185
Firefox Browser Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic