• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do we need ejbpostcreate method for each create method

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic