1 Reply Latest reply on Feb 8, 2010 6:13 PM by niox.nikospara.yahoo.com

    Logging from within an entity bean

    josdaniel
      >> It doesn't matter if you declare the log variable static or not — it will work either way, except for entity bean components which require the log variable to be static.

      The above snippet is from the reference guide.

      @Entity
      class User {

          @Logger
          private static Log log;
      }

      I've tried to declare the log variable as static in my @Entity class, but it throws a NullPointerException on access. Is this a bug?