2 Replies Latest reply on Jul 19, 2012 2:36 AM by Sueleyman Vurucu

    CDI Proxy problem

    Sueleyman Vurucu Expert

      Recently I migrated some EJB Stateful session beans to CDI beans with dependent scope.

       

      I was surprised that I get for some beans a proxy and for some not.

       

      The problem was that I leave the @Prepassivate and @PostActivate annotations. If I comment this out then I get the real instances instead of the proxies.

       

      Is that a bug or a feature ??