Originally posted by Jothi Shankar Kumar Sankararaj: Guys,
I got this from MK's notes,
"PostConstruct and PreDestroy methods are invoked in an unspecified transaction context and security context."
So we don't have to associate these container callbacks with any transaction context? Any reasons please!
PostConstruct and PreDestroy methods are invoked by container for initialization and destruction purpose. These methods are not anyway related to your business methods. I think for this reason, this transaction are not running in the active transaction in which the business logic is handled. I EJB specification enforce the above conditions.