Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions in lifecycle callback methods (II)

 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ejb core spec says (12.4.2, page 307):
A runtime exception thrown by any lifecycle interceptor callback method causes the bean instance and its interceptors to be discarded after the interceptor chain unwinds.
Doesn't glassfish fulfill this requirement or is something wrong in the following example ? If I call test() from the client two times the output in the
log looks like

IA
warning: myException
test
test

But at least the second "test" output wouldn't be possible if the bean had been discarded after the interceptor chain unwinds. What do you think ?
[ October 21, 2008: Message edited by: Ralph Jaus ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic