3 Replies Latest reply on Sep 16, 2009 8:56 AM by Adam Warski

    RevisionListener customization

    Patrick Jusseau Newbie

      My goal is to use a RevisionListener implementation to add specific logging information to the RevisionEntity I use. For instance I need to add a revision description, the name of the user who triggered the revision....

      I tried to get access to a SessionContext inside my RevisionListener (I annoted my RevisionListener with @Stateless) but the variable is always null so no injection seems to be performed.

      Next problem is how to pass to this RevisionListener a description string ? For instance when the user perform some business task like booking a ticket I would like to put in my RevisionEntity a description string stating something like "User placed an order"

      Any ideas?