posted 17 years ago
According to EJB Spec. You will not find ejbCreate()/ejbCreate(.....) method
in any of the Interface(Session,Entity,MessageDriven as well as in EJBHome &
EJBObject).According to Specification whatever create() method you write in
Home Interface there has to be corresponding (Signaturewise)ejbCreate() in
Bean class...thats it....try to remove create() from Home Interface...'ejbc'
will give you error...then you write create() in Home iNterface but comment
out corresponding ejbCreate() in Bean class ...again 'ejbc' will shout.
Thats why..create()/ejbCrate() is not present in any of the
interface.........
If above discussion is misleading/confusing.............follow the next few
lines
Do you agree that for each create() in Home Interface there has to be
Corresponding ejbCreate() in Bean class?
Now how these interfaces could predict what kind of ejbCreate() you are
going to write.....no argument ejbCreate()/parameterized one (& How many
parameters,what about sequence)...you can write parameterized create(hence
ejbCreate())in SFSB,CMP,BMP..right
Hope this helps.....Correct me if i am wrong..
Shrinivas