• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

HF state diagram

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
My, my, aren't you a big fella. Here, have a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic