Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

what the bean provider can do

 
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
 
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
 
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.
 
I AM MIGHTY! Especially when I hold this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic