This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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 ]
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic