[jboss-user] jboss seam, calling seam component from servlet filter
rishi
tripathirishi at gmail.com
Wed May 23 18:34:25 EDT 2007
I am very new to jboss Seam and hence a simple query.
I want to call up a seam component from inside a servlet filter as below:
AuthorizerActionLocal authLocal =
(AuthorizerActionLocal)Seam.componentForName("packageCreationAction")
.getInstance(
AuthorizerActionImpl.class);
UserVO userVO = authLocal.login(userName);
I get an error saying:
java.lang.IllegalStateException: No application context active at
org.jboss.seam.Component.forName(Component.java:1603)
What is going wrong? Is it possible to call a seam component from inside a
servlet filter as above? If not then is there any other way
Thanks,
Rishi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20070523/de70c90a/attachment.html
More information about the jboss-user
mailing list