aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB:: ejbPostCreate() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "EJB:: ejbPostCreate()" Watch "EJB:: ejbPostCreate()" New topic
Author

EJB:: ejbPostCreate()

Raj Waters
Ranch Hand

Joined: Apr 21, 2002
Posts: 37
Hi
ejbPostCreate()
What is the purpose of this method? Any good example which justifies the use of ejbPostCreate()?
:roll:
yup


- Raj<br />[MCSE, SCJP, SCWCD]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Unlike the ejbCreate() method, the ejbPostCreate() method can invoke the getPrimaryKey() and getEJBObject() methods of the EntityContext interface. This makes ejbPostCreate() the only place where you can perform initialization requiring the identity of the entity bean, such as bi-directional dependencies (CMR).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB:: ejbPostCreate()
 
Similar Threads
ejbPostCreate Method is it compulsory
Throw CreateException in callbacks
EPractice Labs - Wrong answer????
Methods that can be invoked in ejbCreate() of Entity Bean
Why use ejbpostcreate() after that ejbcreate()