[jboss-user] [JBoss Seam] - Re: Get ServletContext in Session Bean
CptnKirk
do-not-reply at jboss.com
Thu Jul 27 23:38:17 EDT 2006
How are you making this call? You'll only be able to lookup a Seam context after Seam has initialized and while you're within some web request.
So calling this method via a startup servlet will probably fail. Calling this method via an EJB or MDB that is executed via a non-web request (ie executed directly via IIOP) will also probably fail.
With few exceptions Seam only really works (has context) within the JSF lifecycle. It sounds like you may be trying to use it outside of this. Or you may simply have Seam misconfigured. I need more info please.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961465#3961465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961465
More information about the jboss-user
mailing list