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

PreDestroy interceptor method and transactional context

 
Himai Minh
Ranch Hand
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to p.76 of JSR 318, why PreDestroy lifecyle callback interceptor methods for stateless/stateful bean execute in an unspecified transactional context while the PreDestroy method for singleton execute in a transactional context determined by the bean's transaction management type (container/bean managed) and transaction attribute( REQUIRE, REQUIRE_NEW, NEVER and etc) ?


 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!