0 Replies Latest reply: Apr 3, 2012 10:07 AM by Ivan Ivanov RSS

    Singleton vs ApplicationScoped bean

    Ivan Ivanov Newbie

      Hi friends,

       

      Can anybody explain me what is the difference between:

       

      1. javax.enterprise.context.ApplicationScoped (CDI)

      2. javax.inject.Singleton (CDI)

      3. javax.ejb.Singleton (from EJB 3.1)

       

      And pros'n'cons of each?

       

      Thanks!