Hi,
In HF
EJB Book on Page 368 & 369
Question 5 Which are legal declaration for a CMP bean's ejbCreate methods?
A. public void ejbCreateBigCustomer() throws javax.ejb.CreateException
B. public
String ejbCreateAccount() throws javax.ejb.CreateException
C. static String ejbCreate() throws javax.ejb.CreateException
D. public int ejbCreate() throws javax.ejb.CreateException
E. public final String ejbCreate() throws javax.ejb.CreateException
According to Book Option B is the right answer but I think right answer is B and D both.
Same as in
Question 9 Which method(s) from EntityContext interface can be invoked from within the ejbCreate method?
A. getEJBHome()
B. getEJBObject()
C. getCallerPrinciple()
D. getUserTransaction()
E. setRollbackOnly()
According to book right answer is A,B,C,E.
and I think for this A,C and E are the right answer.
Please put some shed on it if i'm wrong.
Regards,