[jboss-user] jboss seam, calling seam component from servlet filter

rishi tripathirishi at gmail.com
Thu May 24 08:00:17 EDT 2007


I am very new to jboss Seam and hence have this 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/20070524/db8ab22c/attachment.html 


More information about the jboss-user mailing list