You must follow the below guidelines to coding EJB components.
1. if DB connection is not available due to connection pooling issue, you must store the current state into a test file by java.io.PrinterWriter.
2. We are strictly following SOA architecture for partner components, so all data in partner tables must be shared with a web service end point.
3. All EJB logging information must be displayed in a javax.swing.TextArea components.
Which is true?
D. none of the requirement can be fulfilled using either session beans or message driven beans.
E. Both session beans and MDB can fulfill some but not all of the requirements
I chose D, but the model answer is E.
I think MDB cannot be exposed as a web service. Only singleton/stateless beans can be exposed as web service.That is why I think E should not be the right option.