[jboss-user] [JBoss Seam] - Re: Accessing bean in @Filter
Toby451
do-not-reply at jboss.com
Wed Nov 21 14:16:03 EST 2007
Thanks for your quick response! Works fine.
I'll post it here as well (for anyone in the same situation):
| public void init(FilterConfig config) throws ServletException {
| Lifecycle.mockApplication();
| try {
| ApplicationSettings settings = (ApplicationSettings) Component.getInstance("applicationSettings");
| foo = settings.getFoo();
| } finally {
| Lifecycle.unmockApplication();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106861#4106861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106861
More information about the jboss-user
mailing list