[GLASSFISH-19298] EJB bean class PreDestroy method not called after system exception in business method Created: 06/Nov/12 Updated: 15/May/13 Resolved: 15/May/13
|Affects Version/s:||184.108.40.206, 4.0_b61|
|Reporter:||Cheng Fang||Assignee:||marina vatkina|
|Resolution:||Works as designed||Votes:||0|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
A RuntimeException occurred in the business method of a stateless bean. As a system exception it will cause the bean instance to be destroyed, and its PreDestroy method invoked.
When running it on 220.127.116.11 and 4 trunk build, I don't see the pre-destroy methos to be called. So it could be the bean instance is not destroyed, or it is destroyed but didn't call pre-destroy method.
|Comment by Cheng Fang [ 06/Nov/12 ]|
To run the test app, after deploying test.war:
check server.log for entries for PostConstruct and PreDestroy, the latter is not present.
|Comment by marina vatkina [ 15/May/13 ]|
Per EJB 3.2 spec section "4.6.4 Missed PreDestroy Calls"