• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb exam question

 
Nadine McKenzie
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which two methods are guaranteed to be available in a CMP bean's local home interface? (Choose two.)


A remove(Object)
B remove(Handle)
C findByPrimaryKey(primary key)
D create()

I need a sanity check her. The correct answer is A and C. But I think A and C are more correct? Help!
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct answer is A and C. But I think A and C are more correct? Help!


What does that mean ?
 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think D also correct.
 
Sundar Chakravarthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The entity bean is not required to have a create. findByPrimaryKey() and remove(Object) are the two correct answers.
 
kappiil patel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How and why Entity bean doesn't require create() method ?
 
VijayKumar Sivagnanam
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have entity beans which allows only to select/view the records and not to create/insert a new one. So create() is not mandatory in EJBHome interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic