• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions raised in different contexts

 
Subhash Bhushan C
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though lots of scenarios have been provided in HF-EJB and they also particularly mention what the different roles in EJB can do or cannot do in each context, the exceptions that are raised when we "do" commit a mistake have not been mentioned.

Does this mean that the exceptions raised in different contexts are also "Service Provider" dependent? Or is it that the same exception will be raised given a scenario, but they just have not been mentioned in the book?
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm.. even I feel at few times they better tell the exception at that point. Like transaction attributes on page 494.. Person might be new to EJB but not Java as he/she must have passed SCJP.

Regards,
Leena
 
Subhash Bhushan C
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that the EJB Specification (I have Ver 2.0) document does give the kind of exception raised under different situations, as much as possible.

Refer pages 59 - 62 and you will some examples of this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic