Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean discard policy

 
Tejastejas Gokhale
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a system exception is thrown from a bean's method which of the following occur:

1.Only the bean in which the exception occured is discarded.
2.All the bean which were involved the same transaction context are discarded.

Tejas
 
Ugender Rekulampally
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer is 1 but all the beans which are involved in the transaction, will get the exception back from the exception originator bean.

Thanks,
Ugender
[ August 01, 2006: Message edited by: Ugender Rekulampally ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!