• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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 !!!
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic