GeeCON Prague 2014*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question about workflow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question about workflow" Watch "Question about workflow" New topic
Author

Question about workflow

Anjali Sharma
Greenhorn

Joined: Sep 20, 2004
Posts: 4
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.
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
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).

Parag
Paulo Asterio Nunes
Ranch Hand

Joined: Jul 06, 2004
Posts: 63
Yeap,

Parag is right , I took many questions like that and ever focuses on "lightest weight" !

Regards,

Paulo Nunes
MCP OCP IBM285 SCJP 1.4 SCWCD 1.4 SCBCD 1.3


Regards,<br /> <br />Paulo Nunes (Brazil)<br />MCP OCP IBM285 SCJP 1.4 SCWCD 1.4 SCBCD 1.3 SCEA (I)
 
GeeCON Prague 2014
 
subject: Question about workflow