• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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: 42135
937
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'
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic