• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbCreate() question

 
Marilyn de Queiroz
Sheriff
Posts: 9067
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic