Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@PostConstruct not working

 
Mohit Chadha
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use @PostConstruct in my managed bean but the method is never called. I am using JSF 1.2, Java 6 and WebLogic 10.3. Can anyone tell me if I am missing something?

Thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All construction/injection callbacks is usually delegated to the appserver. I would consult the Weblogic docs/forum/support if @PostConstruct is supported by the appserver.

At least I can tell that it just works with Tomcat 6 and Glassfish 2 at my dev environment. Sorry, I can't tell more about Weblogic as I've never used it.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, Google at least shows me that you're not the only one who encountered this problem:
http://www.google.com/search?q=weblogic+postconstruct

Good luck.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic