• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what the bean provider can do

 
srinija kosaraju
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends

this is a question from HFE final mock exam and i am not clear about the
answer.

which methods can be called by a bean provider?
a.remove()
b.ejbCreate()
c.afterBegin()
d.getCallerPrincipal()
e.ejbPassivate

My answer is
HFE answer:a,d

how can 'a' be the answer

can any one suggest
thanks in advance

srinija
SCJP 1.4,SCWCD 1.4
 
Vagner Freitas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The options b, c and e are container's callbacks.
Options a and d can be called from your code (bean provider).

Vagner
 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Remember, remove()is a method in EJBObject, and client has adirect access to it to call remove, where as the implementation of the EJBObject id done by container to create classes, the client can call it.

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic