• 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!