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).