1. @PostConstruct (import javax.annotation.PostConstruct) 2. @PreDestroy(import javax.annotation.PreDestroy)