0 Replies Latest reply: Dec 12, 2011 9:35 AM by 259492 RSS

    @PostConstruct not called on JAX-WS @WebService

    259492
      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...