0 Replies Latest reply on Aug 28, 2012 11:15 AM by 958437

    Singleton class with @Startup annotation WL 11g

      Hello, i have a problem deploying my webservice to Weblogic 11g.

      JAVA: JRockit 1.6.x

      I need to run a method on webservice deployment and i made this code:
      public class StartupBean {
          Logger logger = Logger.getLogger(StartupBean.class);
          private void postConstruct() {
             logger.error("WS started.");
          private void preDestroy() {
              logger.error("WS stoped.");
      without any additional xml config.

      It works normally on 12c but i need it on 11g.

      What is the workaround?