• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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 !!!
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic