why ejbPostCreate()

Why ejbPostCreate() is used in entity bean? why it is not there in session bean?
[87 byte] By [planswermea] at [2007-9-28 3:36:27]
# 1

It's a funny thing because I consider ejbCreate() like a "pre-create" and ejbCreate like a "postCreate". The ejbCreate produces the data required before recording to the database and post create to set up information after the creation.

In session beans there is no need to pre or post-create something since it is unlike the entity bean where one phase depends on another. In other words postCreate in the entity is in reaction to the data that gets stored in the database at create time. There is no reactionary thing that goes on in session beans so therefore you have one ejbCreate().

Hope that made dirt turn into mud. : )

DanHinojosaa at 2007-7-7 23:08:46 > top of Java-index,Other Topics,Patterns & OO Design...