Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

What is the exact use of ejbPostCreate()

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
what is the exact use of ejbPostCreate().
Mohan.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Using ejbPostCreate (when you develop EJB CMP) you can set CMR fields. Wchich is as far as I know impossible when you use ejbCreate method.
The ejbPostCreate is invoked after ejbCreate method.

Regards,

Mariusz
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever you wish to execute before an EJBObject make your bean accessable for the client can be put in ejbPostCreate(). An oftenly seen task (as stated above) in ejbPostCreate() is setting up references to other existing beans, as relationships can not be established before... But you could also perform other kinds of initialization.
[ December 16, 2004: Message edited by: Thomas Manthey ]
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic