• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

HF state diagram

 
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
 
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
 
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic