• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EPractice Lab mock exam 5 question 51

 
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic