2

I want to monitor when a managed bean get created and destroyed. Specifically I want know when the constructor of the managed bean get called. I am in JSF 1.2 (ADF 11.1.1.6), so I don't have any @PostContstract or @PreDestroy. Is there any way?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
  • 1
    This is handled by a PhaseListener. Refer to [Debug JSF lifecycle](http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html) where BalusC heavily explains this. – Luiggi Mendoza May 26 '13 at 13:46
  • 4
    Are you really using JSF 1.2? `@PostConstruct` is just available in JSF 1.2 (but not in JSF 1.0/1.1). I never used `@PreDestroy` on JSF 1.2, but on paper, it should work as well. – BalusC May 27 '13 at 12:52

0 Answers0