[jboss-user] [JBoss Seam] - Access Log from servlet

twocoasttb do-not-reply at jboss.com
Fri Jul 6 12:14:05 EDT 2007


The following works in a servlet:

SiteUser currentUser = (SiteUser)Component.getInstance("currentUser", ScopeType.SESSION, false);

but this doesn't:

Log log = (Log)Component.getInstance("log", false);

and neither does this:

Log log = (Log)Component.getInstance("log", true);

Is this possible?  I assuming it's because the name is wrong, but the variations I've tried haven't helped.  I've also tried specifying the APPLICATION SCOPE.



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

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



More information about the jboss-user mailing list