Win a copy of Modern frontends with htmx this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is question #4 from HFE�s Final mock correct?

 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here it goes

Wich method(s) can be run by a CMP bean in the pooled state? (Choose all that apply.)

A.)ejbLoad()
B.)ejbFind()
C.)ejbStore()
D.)ejbCreate()
E.)Business method
F.)ejbHome

According with the book, the right answers are B and F.
OK. Those are the only methods that don�t change the bean�s pooled state.
But you can run ejbCreate on a pooled bean too.
So, I disagree with the book�s answer.
Is it correct ?
 
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Question is which all methods can be run on a bean when a bean is in pooled state without moving the bean out from the pooled state to ready state.so in this case we can only call either ejbfind or HomeMethods.

If you call ejbCreate,it will move the bean out from pooled state to ready state.

I hope it helps !!!

cheers !!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic