• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

@PostConstruct never called on SessionScoped Managed Bean

Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
    Bookmark Topic Watch Topic
  • New Topic