Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • 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 ?
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • 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 !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic