2 Replies Latest reply on Mar 17, 2009 11:30 AM by toby.tobias.hill.gmail.com

    How to make a piece of code run for each request?

    toby.tobias.hill.gmail.com

      I want a piece of code to be executed on each request. I do not want to use a Filter since I want to be in a managed context (I want to use an entity manager for instance).


      How to do it?


      Thankful for any ideas,


      Tobias



      This is just part of my endeavors to workaround the fact that no facesontext is available on @Create:tion-time of Session-scoped beans.