• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF state diagram

 
Joseph Edward
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I�m new in this forum and I�m using Head First EJB to prepare to scbcd.
This book is really great, but I find one thing I don�t undestand very well. On page 184, from the diagram one can say that you can reach "does not exist" state from a "no state", when the bean throws system exception. I think the bean can only throws an exception when executing a method, or in "method ready" state. Another thing is at page 227, another diagram. By this diagram, who calls "new" on SessionContext is Home Object, is this correct? I�m little confusing...

Thanks in advance.

PS. Sorry for my English
 
Piyush Jain
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "No" state which can be infered from the diagram.

The "No" state according to this diagram is "Does not exist" state.

Somebody correct me if i am wrong.
 
Joseph Edward
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

that�s what I�m trying to say. From the diagram on page 184, you can reach the "does not exist" state from no other state, case the bean throw a system exception. The question is: What is the bean state when it trows a system exception? I think it should be "method ready"..

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic