PostConstruct/PreDestory are transactional with BMT singleton?
posted 2 years ago
The specification session 4.8.3 Transaction semantics of initialization and destruction says the postConstruct and preDestroy methods use REQUIRED, REQUIRES_NEW or NOT_SUPPORTED with singleton under CMT.
But the specification does not say if postConstruct/PreDestroy are transactional under BMT.
Are these two methods not transactional ?
Even in session 14.3.3 table 19, it says
If singleton, rollback any container-started transaction
It does not even say if the bean managed transaction should be rollback or not.