[jboss-user] [JBoss Seam] - Re: Get ServletContext in Session Bean

2006-07-27 Thread recycle_bin
Thank Cptnkirk. it works now when i call session bean through JSF. i made a mistake that i call such session bean in a servlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961470#3961470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [JBoss Seam] - Re: Get ServletContext in Session Bean

2006-07-27 Thread CptnKirk
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 exec