• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock exam 5 question 51

 
Himai Minh
Ranch Hand
Posts: 1360
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
51. You have product store that does not require scalability but requires transaction. It is targeted only for government agencies and the average user per month will be 6-10. Which Java EE technology you would select for this application?
A. JSP and servlets for presentation and stateless session beans for business logic.
B. JSP and servlets for presentation and business logic, JTS for handling transaction.
C. JFC for presentation and CMP entity beans for handling transactions.
D. JSP and serlvets for presentation and CMP for business logic and transactions.
E. JSP and servlets for presentation, stateless session beans and CMP entity beans for business logic and transactions.
F. None of the above.
Given answer: B
Note that the application does not require scalability and number of users hitting the site are also very less. Hence web centric is chosen for Java EE architecture.


I think the answer can be E.

Stateless session beans and CMP entity beans can be used for small scale application.
For B, it does not make sense to use servlet to handle business logic.
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The key term in the question is "transaction" which in java ee it's JTS. So any answers not having JTS or equivalent are wrong.

CMP is for persistence, not business logic not transaction.

Servlets can be used for business logic especially when EJB isn't necessary.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic