6 Replies Latest reply on Oct 16, 2006 9:37 AM by flo thomas

    The Seam Lifecycle

    flo thomas Newbie

      Hi,
      I have some questions regarding the Seam lifecycle. I have some @Service annotated EJBs, i.e. Singletons, because they are pretty resource intensive, they parse large XML files etc. (is this the best approach btw for this task? - i hear traditional Singletons are evil in a container because the statics are often not cleaned up when redeploying...), but I also wanted to use some Seam functionality (like Injection) in these Services, e.g. the @Log annotation. However, when I try to access the Logger in the start() method, it throws a NullPE. It's understandable, since Seam doesn't seem to be "started" at that point - is there a work-around for that? It seems to me that Seam should support the @Service annotation...

      Thanks,
      joey