• 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

Entity Beans

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
what is difference bet ween ejbCreate() & ejbPostCreate() methods when we use ejbPostCreate()and what is use of this one by using in our application.

Thanks,
vishnu
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vishnu Vardhan,

The difference between ejbCreate() and ejbPostCreate() is as follows:

1. ejbCreate() method is used when we want to create a instance of bean in the memory of the container so we can lookup(or call any business methos) on this bean instance.
2, ejbPostCreate() is a life cycle method of bean. Suppose you want that as soon as this bean gets loaded(or created) into the memory of container then i need to invoke other services or want to invoke other bean instance which would be useful in business model...

I hope now would get the clue what is the difference between both of them..

Cheers !!!
Sumit Malik
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi malik,
Thanks for your reply i got the point.

Thanks,
vishnu
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic