[jboss-user] [JBoss Seam] - Get ServletContext in Session Bean
recycle_bin
do-not-reply at jboss.com
Thu Jul 27 23:08:28 EDT 2006
I would preload system data to ServletContext for later use during system up. Then i will get those data in the Session Bean (both stateful and stateless).
I use following code to retrieve
Context context = Contexts.getApplicationContext();
But, context is NULL. Is there anything that i need to take care when i use getApplicationContext()? or are there other ways to achieve same goal?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961463#3961463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961463
More information about the jboss-user
mailing list