For a CMP Entity Bean, what should ejbCreate method return? (
EJB Specification 1.1)
A. null
B. Remote interface
C. Home interface
D. Primary Key
E. Enumeration
Referring to book defination.
ejbCreate () method returns PrimaryKey instance for CMP and BMP.
Although it does states that
" In EJB 1.1 the change has been made and they have changed method definitation of ejbCreate to return object of Primary Key type to facilitate subclassing."
In real world it book states that
" In CMP persistence ejbCreate will return null value of type Primary Key"
I found this question being discussed at amit jagal's home page. He has mentioned B - Remote Interface as correct answer.
I really doubt that, but still I am confused whether it can be A (null) or D (Primary Key)
Please reply ASAP.
Thanks,
Chetan Mehta