Forums Register Login

What should ejbCreate() return?

+Pie Number of slices to send: Send
Hi,
According to EJB1.1 specification what should the ejbCreate() method of CMP bean return.
Should it return null or promary key?
O'relly book seems to be saying that it should return null.
thanks,
RamdhanYK
+Pie Number of slices to send: Send
Hi,
if you are using CMP, ejbCreate should return null.
(besides, it also works if you return the pk!.. but according
to the spec, programmers have to return null)
If you are using BMP, you have to return the primarykey.
------------------
Marco Barenkamp
____________________________________________
L M I N T E R N E T S E R V I C E S AG
Senior Trainer & Architect,
BEA Certified Enterprise Developer
Sun Certified Programmer for the Java2 Platform
Sun Certified Web Component Developer for the Java2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition (PI)
+Pie Number of slices to send: Send
Thanks Marco!
I found some pretty shells, some sea glass and this lovely tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 692 times.
Similar Threads
what should ejbCreate mehtod return?
ejbCreate() in Entity bean returns null
ejbCreate's return value(Entity Bean)
Return type of ejbCreate
ejbCreate() question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:39:33.