Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Do we need ejbpostcreate method for each create method  RSS feed

 
Vasantha Prabha
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai do we need ejbpostcreate for each create ?.If yes how does each create method will realise its post create method?
How does this ORB protocal is implemented in EJB
Regards,
Sangeetha
 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To My Knowledge, ejbpostcreate is a call back method by ejb container. If you override that method in bean class, container will execute that once bean has come to ready state.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sangeetha Vasantha:
Hai do we need ejbpostcreate for each create ?.If yes how does each create method will realise its post create method?

Yes, but in many cases you ejbPostCreate() method will not do anything...
[ February 09, 2004: Message edited by: Chris Mathews ]
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sangeetha Vasantha:
Hai do we need ejbpostcreate for each create ?.If yes how does each create method will realise its post create method?
How does this ORB protocal is implemented in EJB
Regards,
Sangeetha

Yes, every create() needs to have a ejbPostCreate() method.
They have matching method signatures, except for the return types.
CMR fields are assigned in the ejbPostCreate() methods. They are applicable only to entity beans and most of the times are empty.
"How does this ORB protocal is implemented in EJB?"......
- No idea.....As a bean provider, I know that EJB uses RMI-IIOP protocol.
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>>Yes, every create() needs to have a ejbPostCreate() method.
>>They have matching method signatures, except for the return types.
CMR fields are assigned in the ejbPostCreate() methods. They are applicable only to entity beans and most of the times are empty.
Apart for CMR field setting to complete the EB instance initialization, which is not done in ejbCreate method, bean developer can obtain the EB Object Identity in ejbPostCreate, which is not available during ejbCreate method.
Seetesh
[ February 16, 2004: Message edited by: Seetesh Hindlekar ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!