Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Business Tier Technologies mock question?

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which statement is true about Container Managed Persistence (CMP) and the introduction of Java Persistence API?

A. It is possible within the same application to combine EJB CMP entity beans with new EJB's utilizing Java Persistence API.
B. You are unable to combine earlier EJB CMP entity beans with newer EJB components utilizing Java Persistence API.
C. EJB CMP entity beans API is simpler but provides less features than the Java Persistence API.
D. You are required to migrate applications using EJB CMP entity beans to the Java Persistence API.

Option A is correct.
Option B is incorrect because with Java Persistence API you are able to combine earlier EJB CMP entity beans with newer EJB components utilizing Java Persistence API.
Option C is incorrect because Java Persistence API is simpler and provides more features.
Option D is incorrect because you are not required to migrate applications that utilize CMP entity beans.

How comes answer D is incorrect, if you are moving to JPA from CMP then you have to migrate but the answer says you are not required to migrate.

 
author & internet detective
Posts: 41262
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where did this question come from?
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is from Sun's Epractice.
 
Ranch Hand
Posts: 528
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The the reason for D being incorrect is in answer A,.. CMP and JPA can co-exist, therefore there is no need to migrate.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Marcelo Ortega wrote:The the reason for D being incorrect is in answer A,.. CMP and JPA can co-exist, therefore there is no need to migrate.




Option D is incorrect because you are not required to migrate applications that utilize CMP entity beans.


You are right. I forget to put stress on word 'required'
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic