[jboss-user] [JBoss Seam] - The Seam Lifecycle

bluetrade do-not-reply at jboss.com
Mon Oct 16 05:59:07 EDT 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978477#3978477

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978477



More information about the jboss-user mailing list