I am using JSF1.2 with JBoss 5.1.0-GA server. I am trying to use @PostConstruct on one of my methods but it is not being invoked. I verified that the web-app servlet version is 2.5 and the faces-config JSF version is 1.2. Even I tried using the context-param with JBoss InjectionProvider (JBossInjectionProvider) and Tomcat Injection Provider (WebContainerInjectionProvider) as below.
<context-param>
<param-name>com.sun.faces.injectionProvider</param-name>
<param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.injectionProvider</param-name>
<param-value>com.sun.faces.vendor.WebContainerInjectionProvider</param-value>
</context-param>
We're discussing this question@PostConstruct annotation not called jboss5.1.