Hi,
Legal Declarations of CMP Bean ejbCreate()
A)public void ejbCreateBigCustomer() throws CreateException;
B)public String ejbCreateAccount() throws createException;
C)public int ejbCeate() throws CreateException
The Answer should be only B.
As per the Specs the return type of ejbCreate() is Entity Bean's Primary Key Class or it should be a Object and cannnot be a primitive data type as what Mr.Balaji told.
Also assuming,createException is a typo.It should be CreateException.
B.T.W what server r u using??? I guess in
JBoss or weblogic,it will not allows us to use like this-
ejbCreateAccount().It should be
ejbCreate().Any experts comments on this part,Please..