当前位置: 动力学知识库 > 问答 > 编程问答 >

jboss - initialize sessionContext and context

问题描述:

Can anyone please suggest to me how to initialize org.jboss.seam.contexts Context as well as session context inside IR?

I need to do it for my testing purposes.

网友答案:

You need to first create an application context and set the property.

Context appContext = new ApplicationContext();
// Set a value
appContext.set("flagvalue", new Object());
// Get a value
Contexts.getSessionContext().get("flagvalue");
分享给朋友:
您可能感兴趣的文章:
随机阅读: