7 Replies Latest reply on Apr 2, 2009 7:01 PM by Mounir Bakkali

    Logger is null in JavaBean

    Mounir Bakkali Newbie

      Hi everyone,

      I was just wondering if the annotation @Logger
      works only with EntityBeans?
      That's what it looks like because when I try
      doing that using a JavaBean, the logger is not
      injected (its value is null)

      The code I have is:

      public class EmailUtils {
           @Logger Log log;
           public sendEmail(...) {

      Any idea on how to make it work with JavaBeans unless
      it just doesn't?
      In that case, is there any intention to make it work for JavaBeans in future releases?