wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes What is the exact use of ejbPostCreate() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is the exact use of ejbPostCreate()" Watch "What is the exact use of ejbPostCreate()" New topic
Author

What is the exact use of ejbPostCreate()

Sanju
Ranch Hand

Joined: Jul 15, 2002
Posts: 53
Hi,
what is the exact use of ejbPostCreate().
Mohan.


Thank you,<br />Sanju
Mariusz Malinowski
Greenhorn

Joined: Dec 15, 2004
Posts: 14
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
Thomas Manthey
Greenhorn

Joined: Dec 16, 2004
Posts: 12
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 ]

inside every large program there is a small program struggling to get out...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the exact use of ejbPostCreate()
 
Similar Threads
Entity Beans
ejbPostCreate
use of ejbPostCreate
why we are using ejbPostCreate()
EJB:: ejbPostCreate()