3 Replies Latest reply on Nov 9, 2012 8:04 AM by nimo stephan

    @ManagedBean(eager=true) with AS 7.1.1

    nimo stephan Master

      I have a application scoped bean with eager=true and expect that this bean loads during server start. But it does not!

       

       

      I am using common code

       

      {code}

      @Named

      @ManagedBean(eager=true)

      @ApplicationScoped

      public class MyEagerThing implements Serializable {

       

          private static final long serialVersionUID = -31177492927498099L;

       

          private static Logger log = Logger.getLogger(MyEagerThing.class);

       

          @Inject

          private Controller controller;

          @PostConstruct

          public void postConstruct() {

            log.infov("@PostConstruct: {0}", this.getClass().getSimpleName());

          }

      {code}

       

       

      Using Glassfish, "MyEagerThing" is loaded eagerly successfully.

      But with Jboss 7.1.1 FINAL, the eager does not work.

       

      Is this a bug?