why CMP ejbCreate () returns null

Hi,Why does ejbCreate method of CMP entity beans return null instead of the primary key ?Could someone explain me more on this.Thanx in advance.
[186 byte] By [mpbhat] at [2007-9-19]
# 1

Greetings,

The key is in 'CMP' - "Container Managed Persistence". What this means is that the container is managing (performing the work of) synchronization between the data resource and the bean's state fields (those, at least, which map to the resource ;), including the primary key field(s). IOW, the container creates the instance of the Primary Key class, so there is no reason for the bean class to do so.

Regards,

Tony "Vee Schade" Cook

pendraco at 2007-7-5 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hi all,To continue this discussion, why the return paramter has to be declared as a String or Remote Object, it could have also be declared as void.Pls explain.Seetesh
seeteshh at 2007-7-5 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 3
>>String or Remote ObjectI mean String or Primary Key class referenceSeetesh
seeteshh at 2007-7-5 > top of java,Enterprise & Remote Computing,Enterprise Technologies...