• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what should ejbCreate mehtod return?

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for entity cmp bean, what should ejbCreate mehtod return?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The declared return type should be the primary key class for your CMP. However, in the implementation of ejbCreate() you should be returning null. The Container will take care of the rest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic