Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Business Tier Technologies mock question?

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • 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.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did this question come from?
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is from Sun's Epractice.
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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: 850
  • Mark post as helpful
  • send pies
  • 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'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic