Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractace labs mock 3 question 34  RSS feed

Himai Minh
Ranch Hand
Posts: 1572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!