Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please read this question

 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()

can you tell me why e is not the correct answer.
thank you!
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you tell me why e is not the correct answer.

Who told you e is not the correct answer?
There may be some mistakes in some of the websites..
 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from my book ,<scbcd exam study kit>
in this book it only give the correct answer as: b,c .
but I think createDiscount() can be defined as a bussiness method in component interface. client also can call it from the bean.
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I agree. I don't see any problem in having method createDiscount() in component interface unless i am missing something obvious.
 
Rajan Murugan
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have more than the required create() for stateless session bean.e is not valid.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic