This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If you have code that deals with workflow of the system and you want the lightest weight EJB, which EJB should you use? A.Entity B.Stateful session bean C.Stateless session bean D.Servlet
I think the answer should be B, but the book says that correct answer is C. Can the workflow be implemented through stateless session bean? I guess stateless is used when the bean's state has no data for a specific client.
If the emphasis is on the most lightweight, then yes, stateless session beans is the right answer. And you can have stateless workflow (the customer state is normally passed in as a parameter to the methods).