1. Which of the following methods can be called from the code of a stateless session bean�s client? a. ejbCreate() b. remove() c. create() d. ejbRemove() e. createDiscount() Answer: B, C
I believe the answer should be b,c,e as it has been asked about the valid methods from session bean client (can be called using reference of Home & Component interface) so createDiscount can be a business method that can be declared in component interface & its implementation can be in bean class as the spec says The name of business method in bean class should not begin with ejb(can begin with create) Let me know your opinion?
To me the question sounds like, which method can be called from the client of a stateless session bean. Stateless session bean creates cannot have any other name apart from create. Hence, B and C are the right answers.
I too agree if it's using HomeInterface we can call only create() & remove() but question does not say home Which of the following methods can be called from the code of a stateless session bean�s client?(not specified only home interface) Let me know if i comrehend the question wrong