This discussion is archived
0 Replies Latest reply: Dec 12, 2011 7:35 AM by 259492 RSS

@PostConstruct not called on JAX-WS @WebService

259492 Newbie
Currently Being Moderated
Hello,

using the fresh new WebLogic 12 I've got a problem with a JAX-WS class that is @WebService annotated (deployed as WAR) and has a

@PostConstruct
public void init() { ... }

method in it. Unfortunately the method is never called upon deployment. The

     @Inject @....     
     private ConnectionFactory connectionFactory;

     @Inject @....
     private Queue queue;

fields are injected properly using CDI though. So I assume that CDI is working (empty beans.xml exists in WEB-INF), but interestingly the @PostConstruct ist never called.

Do you have any thoughts or tips?

Thanks in advance...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points