*
The moose likes JSF and the fly likes @PostConstruct never called on SessionScoped Managed Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "@PostConstruct never called on SessionScoped Managed Bean" Watch "@PostConstruct never called on SessionScoped Managed Bean" New topic
Author

@PostConstruct never called on SessionScoped Managed Bean

Ismael Gimenez
Greenhorn

Joined: Oct 21, 2008
Posts: 9

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: http://aspose.com/file-tools
 
subject: @PostConstruct never called on SessionScoped Managed Bean
 
Similar Threads
Glassfish v3. javax.ejb.CreateException: Could not create stateless EJB
EJB3 mock questions available now! (Section 2)
To map backing bean from a selected drop-down value
Interceptors invocation sequence?
@ManyToMany delete problem