• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbCreate() question

 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why return null, in ejbCreate() in CMP.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What you say applies to Entity Beans with container managed persistence. The answer to your question lies in the fact that the ejbcreate method initializes the container managed fields from the input parameters and returns nulll as the container ignores its return value. After the ejbCreate mehtod executes the container inserts the container managed fields into te database.
Hope this helps

------------------
Regds.
Mahindrakar
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!