It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes EJBPostCreate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBPostCreate " Watch "EJBPostCreate " New topic


Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
where do we use EJBPostCreate() method.Can any one give some real world examples where i can use EJBPostCreate() method.
daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
EJBPost Create is called immidiately after the create method is called, one example i can give you is that suppose in a CMP the user passes some variables which will add a row to the database, but based on some logic you want to modify the data or say call some other bean, then you can do that in post create as you wont be allowed to do it in create.I personally havent had the need to use postCreate in my projects till date.
Hope this helps.
I agree. Here's the link:
subject: EJBPostCreate
jQuery in Action, 3rd edition