Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Do we need ejbpostcreate method for each create method

 
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
 
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.
 
Ranch Hand
Posts: 2713
  • 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 ]
 
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.
 
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 ]
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic