ejbPostCreate() in CMP beans

Discussions

EJB design: ejbPostCreate() in CMP beans

  1. ejbPostCreate() in CMP beans (6 messages)

    Hello,

    Do we require the ejbPostCreate() in CMP ?

    Threaded Messages (6)

  2. yes
  3. ejbPostCreate() in CMP beans[ Go to top ]

    it is must;With out that how else will u return a reference to ejbObject ?
  4. Yes ejbPostCreate() is neccessary for CMP beans. You may leave it without any implementation or you may do post intialization operations in this method. It should have same parameters as in ejbCreate() method.

    K.Siva Swamynatha
  5. If you wish to maintain relationships between your EJB's, you will then need to implement ejbPostCreate(). Until then, you'll probably leave it unimplemented.
  6. ejbPostCreate() in CMP beans[ Go to top ]

    hi Bill Withers

    you sain:If you wish to maintain relationships between your EJB's, you will then need to implement ejbPostCreate().

    I can not understand your means.
    can you give me a code example for this?

    Thanks
  7. ejbPostCreate() in CMP beans[ Go to top ]

    I means:
    When do we need to writing code in the ejbPostCreate?