This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@PostConstruct never called on SessionScoped Managed Bean

Ismael Gimenez
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Banging my head after few hours, i figured out that I was calling limpiarFormulario() before it get initiated/born. So I was getting a null pointer in utilEJB class. The idea seems to be that I need to use the @PostConstruct init method to call the limpiarFormulario() since the EJB are already injected. The problem is that the @PostConstruct is never called.

Can anybody explain me why???

Thanks in advance!!
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic